Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Render A Form In A Static Page

$
0
0
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 !

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>