I do $this->render('searcht',array( 'result'=>$item,'model'=>$model,));
but I get an error
MyController cannot find the requested view "search"
$this->render('main');
this call looks for the file
protected/views/site/main.php
if you're not using the main application but a module, you need to specify the full path to the view
$this->render('application.modules.moduleName.views.View.viewName',array('model'=>$model));
thanks
Comments