Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Same in all of them
- $layout = $this->getResource('layout');
- $view = $layout->getView();
- // Attempt one
- $layout->sidebar = $layout->render('sidebar');
- // Attempt two (basically the same as no. 1 in processing)
- $view->addScriptPath(APPLICATION_PATH.'/views/layouts/');
- $layout->sidebar = $view->render('sidebar.phtml');
- // Both of these methods above try and look for error/error.phtml in the layouts folder WHY?!
- // Attempt three
- $view->addScriptPath(APPLICATION_PATH.'/views/layouts/');
- $layout->sidebar = $view->partial('sidebar.phtml');
Add Comment
Please, Sign In to add comment