Block->render(...) does not find the correct view.

Permalink
I have 2 packages named sector_naturalfoods_blocks and global_theme_unify. global_theme_unify is where my theme lives along with all of the views. sector_naturalfoods_blocks is where all my blocks live minus their views. Everything works correctly when a block from sector_naturalfoods_blocks needs a view from global_theme_unify except when I manually call $this->render("templates/feature/view") from a block in sector_naturalfoods_blocks. It doesn't look for the view in global_theme_unify it seems to only look in the package that the block lives in.

This is the path it tries:

/var/www/html/packages/sector_naturalfoods_blocks/blocks/sector_aisle_seven_resource/templates/feature/view.php

This is the correct path:

/var/www/html/packages/global_theme_unify/blocks/sector_aisle_seven_resource/templates/feature/view.php

What do I need to do to get the render function to look for a view in my theme package ?

Thanks

Warren Bell

warish
 
warish replied on at Permalink Reply
warish
Anybody have a bone for me on this one ?