I just want to ask I am creating crud in gii,now it creates on my
views /user/
_form.php
_serch.php
_admin.php
_create.php
_updaate.php
_view.php
_index.php
In my UserController.php
gii generates this code
public function actionCreate()
{
$model=new User;
// Uncomment the following line if AJAX validation is needed
// $this->performAjaxValidation($model);
if(isset($_POST['User']))
{
$model->attributes=$_POST['User'];
if($model->save())
$this->redirect(array('view','id'=>$model->id));
}
$this->render('create',array(
'model'=>$model,
));
}
in the line "if($model->save())".when I look at in my User.php which is the model,I could not see save method()…when I tried to save new data,it saves…where it was located the save method() ?
Thank you in advance.