Nested View Folders

I am trying to render the nested view folders but it does not work.

I must have missed something. I also attach the screenshot of my file structure below.





In the controller, I am calling the render() method.

  public function actionCreate() {

     $model=new MenuTypes();

     $this->render('ui/menutypes/create', array('model'=>$model));


Please point me to the right direction.

Thanks in advance.

Is the ui folder relative to your controller’s view folder? Meaning, if your controller’s name is ProductController, then are the view files located under views/product/ui/menutypes?

If not, I believe you need to tell Yii to look in the root directory first

$this->render('/ui/menutypes/create', // notice the leading fwd slash