RenderPartial for Modules

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?

Solved.

I providing incorrect information. It should be as




echo $this->renderPartial('admin.views.layouts.menu');



as my menu is placed in modules->admin->views->layouts

Thanks