Guest User

Untitled

a guest
Jul 17th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <?php
  2.  
  3. // Same in all of them
  4. $layout = $this->getResource('layout');
  5. $view = $layout->getView();
  6.  
  7. // Attempt one
  8. $layout->sidebar = $layout->render('sidebar');
  9.  
  10. // Attempt two (basically the same as no. 1 in processing)
  11. $view->addScriptPath(APPLICATION_PATH.'/views/layouts/');
  12. $layout->sidebar = $view->render('sidebar.phtml');
  13.  
  14.  
  15. // Both of these methods above try and look for error/error.phtml in the layouts folder WHY?!
  16.  
  17.  
  18. // Attempt three
  19. $view->addScriptPath(APPLICATION_PATH.'/views/layouts/');
  20. $layout->sidebar = $view->partial('sidebar.phtml');
Add Comment
Please, Sign In to add comment