Skip to content

Instantly share code, notes, and snippets.

@flaviozantut
Created March 7, 2012 13:20
Show Gist options
  • Save flaviozantut/1993062 to your computer and use it in GitHub Desktop.
Save flaviozantut/1993062 to your computer and use it in GitHub Desktop.
Public Controller
<?php if ( ! defined('BASEPATH')){exit('No direct script access allowed'); }
/**
* [descriçao da classe]
*
* @category Controllers
* @package [module_name]
* @author Flavio Zantut <[email protected]>
* @copyright 2012 Flavio Zantut
* @license GNU General Public License
*/
class [class_name] extends Public_controller {
/**
* Método Construtor
*/
public function __construct()
{
parent::__construct();
log_message('info', 'load [class_name] controller');
}
/**
* Método padrão a ser exibido
*
*/
public function index()
{
//$this->template->set_cache(1);
//$this->template->append_metadata($this->template->inc_css('file'));
//$this->template->set('var', $var);
//$this->template->set_layout('default');
$this->template
->set_partial('partial', 'partial')
->build('parts/view');
}
}
// End of file [class_name].php
// Location: ./modules\[module_name]\controllers\[class_name].php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment