RenderPartial in module

I have a admin module (modules/admin). In modules/admin/views/default/_sidebar.php is my sidebar. But when i try to render this sidebar inside modules/admin/view/company/manage.php with <?php $this->renderPartial(’//default/_sidebar’); ?> , i get the message that the view cannot be found. What am i doing wrong?

Try to render without double slash (source):

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

Thanks, that works like a charm!

You have renderPartial to another module with code:

<?php echo $this->renderPartial('//about/default/menu_about') ?>

<?php echo $this->renderPartial('//services/menu_services') ?>

about, services is module name. menu_about and menu_services in view folder

have fun

Thanks, it helped me rendering a view from main application within a module. You just need to add ‘//’ at the start to map it from the main application.

<?php echo $this->renderPartial('//app_default/main_menu') ?>