Frontend
[ class tree: Frontend ] [ index: Frontend ] [ all elements ]

Source for file PageController.php

Documentation is available at PageController.php

  1. <?php
  2. /**
  3. * DotBoost Technologies Inc.
  4. * DotKernel Application Framework
  5. *
  6. @category   DotKernel
  7. @package    Frontend
  8. @copyright  Copyright (c) 2009 DotBoost  Technologies (http://www.dotboost.com)
  9. @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  10. @version    $Id: PageController.php 158 2010-06-25 08:59:20Z teo $
  11. */
  12.  
  13. /**
  14. * Page Controller
  15. @author     DotKernel Team <team@dotkernel.com>
  16. */
  17.  
  18. $pageView new Page_View($tpl);
  19. // all actions MUST set  the variable  $pageTitle
  20. $pageTitle $option->pageTitle->action->{$requestAction};
  21. // switch based on the action, don't forget the default action
  22. switch ($requestAction)
  23. {
  24.     default:
  25.         // default action is home
  26.         $pageTitle $option->pageTitle->action->home;
  27.     case 'home';
  28.         // call showPage method to view the home page
  29.         $pageView->showPage('home');
  30.     break;
  31.     case 'about':
  32.         $pageView->showPage($requestAction);
  33.     break;
  34.     case 'who-we-are':
  35.         $pageView->showPage($requestAction);
  36.     break;
  37.     case 'outbound-links':
  38.         $pageView->showPage($requestAction);
  39.     break;
  40. }

Documentation generated on Wed, 21 Jul 2010 07:34:41 +0000 by phpDocumentor 1.4.3