Recently I joined yii and I realized this framework is perfect for my further projects.
However, there is one issue I am facing and I have seen some others having problems with that aswell.
Including forms to specific location.
General question
I made a certain model and form using gii model and CRUD generator. I would like to use that form what I made which is now located in ?r=email/create in my front page ?r=site/index. How can I do that while following the ideology of yii? What about including multiple forms?
More specific question
I generated an AR model for table ‘email’. After that generated CRUD, controller, create, _form. Using that in ?r=email/create (original location) works perfectly. But after I render it to front-page it displays the form but the form itself does not work – it does not do anything except reloading the page.
$model=new Email;
$this->renderPartial('//email/_form',array('model'=>$model), false,true);
What am I missing?
Thanks,
Creator_M