PrajapatiRaj / yii-user

Automatically exported from code.google.com/p/yii-user
0 stars 0 forks source link

bad communication between controller and viewer #58

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.in Usercontroller I make empty model by using 
$model = new User('search')
$model->unsetAttributes();

2.then I ask viewer to render output
$this->render('index',array('model'->$model)
3.when I want to access the $model in viewer and create cgridview of all users, 
I get an error 500:
Undefined variable: model

What version of the product are you using? On what operating system?
I'm using version 03 - r69

Please provide any additional information below.
I'm trying to make this in order to make list sortable and searchable

Original issue reported on code.google.com by ppi...@gmail.com on 12 Feb 2011 at 12:36

GoogleCodeExporter commented 8 years ago
I am sorry, everything is all right, I was editing the wrong controller.

Original comment by ppi...@gmail.com on 12 Feb 2011 at 7:46

GoogleCodeExporter commented 8 years ago

Original comment by mish...@gmail.com on 16 Feb 2011 at 2:59