Created
March 7, 2012 13:20
-
-
Save flaviozantut/1993062 to your computer and use it in GitHub Desktop.
Public Controller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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