Hello !
I have a big issue trying to call a partialRender of a form in a static page in views/site/page/register.php
$model=User::model();
$this->renderPartial('//User/_form',array('model'=>$model));
The form is well displayed but when I submit the form, it doesn't happen anything : it redirects to the same page. I want my form to be validated, to display the errors if there are some and to create my new user.
How can I do this ?? Have I to call the 'actionCreate' of my UserController ? How ?
I'm lost with Yii, definitely.
Thanks in advance & have a nice day !
I have a big issue trying to call a partialRender of a form in a static page in views/site/page/register.php
$model=User::model();
$this->renderPartial('//User/_form',array('model'=>$model));
The form is well displayed but when I submit the form, it doesn't happen anything : it redirects to the same page. I want my form to be validated, to display the errors if there are some and to create my new user.
How can I do this ?? Have I to call the 'actionCreate' of my UserController ? How ?
I'm lost with Yii, definitely.
Thanks in advance & have a nice day !