Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. class BaseFrontendController extends BaseController {
  2.  
  3. public function initialize()
  4. {
  5. parent::initialize()
  6. if ( $this->authenticated ) {
  7. $this->view->setTemplateBefore('frontend-authenticated');
  8. } else {
  9. $this->view->setTemplateBefore('frontend-guest');
  10. }
  11. }
  12.  
  13. class IndexController extends BaseFrontendController {
  14.  
  15. public function initialize()
  16. {
  17. parent::initialize()
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement