How to render an application view from a module's view

Hey guys,

I’m new to the framework, but I’m really excited. Even extended an extension (

Now, I’m trying to render an application view (/protected/views/_menu.php) from a view inside a module (/protected/modules/rights/views/layouts/main.php) but I can’t get it to work. So far, I’ve tried:




and many more…

The only work around I could find was to create a symbolic link to the application view inside de module, but it relies on apache configuration.

How could I accomplish this?

maybe //// would help…

I did a little test for you…

If you put _test.php like this: /view/_test.php

You can access it from template inside layout or from some page inside /site/index.php etc.

Or from the controller just by

<?php $this->renderPartial('//_test');?>

Got it!

The correct syntax is actually the one i’ve found previously googling


The problem was with the phamlp extension. On my application layout I had


Which works fine with the default ViewRenderer but doesn’t work with the phamlp view renderer