But now I get the error: undefined variable: model …
why is the variable missing?
Hello yii community!
I am new to php, yii and MVC but I am pretty happy with it.
I created a form with gii’s form-generator. The php-file (myform.php) was created in protected/views.
Now I want this form to be available in the menu (just like "Home")… here is the main.php.
$this->widget('zii.widgets.CMenu',array( 'activeCssClass' => 'active', 'activateParents' => true, 'items'=>array( array('label'=>'Home','url'=>array('/site/index')),
So what url do i use for myform.php? I always get 404 …