Hi All,
I am facing a little bit problem while adding/display partial contents of a view in default controller of a module.
the structure is as default structure of the application.
The code that I am using is
echo $this->renderPartial('admin.views.menu');
And to set the default layout of the module, I am using the following code.
public function beforeControllerAction($controller, $action)
{
if(parent::beforeControllerAction($controller, $action))
{
$controller->layout = 'admin';
// this method is called before any module controller action is performed
// you may place customized code here
return true;
}
else
return false;
}
Any help?