Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class PublicPagina extends System_Controller{
- public function index(){
- $this->loadHelper('router');
- $pagina = $this->router->getParam('class');
- switch ($pagina):
- case 'servicos';
- $this->servicos();
- break;
- endswitch;
- }
- public function servicos(){
- $this->setTitle('Serviços');
- $this->setDescription('');
- $this->addStyle('themes/css/main.css');
- $this->addScript('themes/js/jquery.js');
- $this->loadParam('title', 'Titulo da página');
- $this->setTemplate('default');
- $this->loadView('servicos');
- }
- }
- ?>
Add Comment
Please, Sign In to add comment