Guest User

Untitled

a guest
Apr 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.88 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. class PublicPagina extends System_Controller{
  5.  
  6.  
  7.       public function index(){
  8.          
  9.           $this->loadHelper('router');
  10.          
  11.           $pagina = $this->router->getParam('class');
  12.  
  13.          
  14.           switch ($pagina):
  15.              
  16.               case 'servicos';
  17.                  $this->servicos();
  18.                   break;
  19.              
  20.           endswitch;
  21.          
  22.       }
  23.      
  24.       public function servicos(){
  25.  
  26.              $this->setTitle('Serviços');
  27.              $this->setDescription('');
  28.              
  29.              $this->addStyle('themes/css/main.css');
  30.              $this->addScript('themes/js/jquery.js');
  31.              
  32.              
  33.              $this->loadParam('title', 'Titulo da página');
  34.              
  35.              $this->setTemplate('default');
  36.              $this->loadView('servicos');
  37.  
  38.       }
  39.  
  40. }
  41.  
  42.  
  43.  
  44. ?>
Add Comment
Please, Sign In to add comment