Hi, using yii i create CRUD and try to understand generated cod and have question: i see in action admin this cod - in manual same cod:
public function actionAdmin()
{
$model=new Post(‘search’);
if(isset($_GET[‘Post’]))
$model->attributes=$_GET[‘Post’];
$this->render(‘admin’,array(
‘model’=>$model,
));
}
this cod tests array $_GET for existing var ‘Post’. where from $_GET[‘Post’] comes - in $_GET may be var r and id, no ‘controller name’ var. May be it is dummy question but it is very helpful for me… Please help