Codeigniter : Différence entre versions
De Wiki NCad
(→Méthodes particulière) |
(→Méthodes particulière) |
||
Ligne 3 : | Ligne 3 : | ||
− | index()<span style="color:green;"> //appelé par defaut</span> | + | function index()<span style="color:green;"> //appelé par defaut</span> |
{ | { | ||
} | } | ||
− | __construct() <span style="color:green;"> //constructeur, ouvert avant chaque appel de methode</span> | + | function __construct() <span style="color:green;"> //constructeur, ouvert avant chaque appel de methode</span> |
{ | { | ||
parent::__construct(); <span style="color:green;"> //obligatoire</span> | parent::__construct(); <span style="color:green;"> //obligatoire</span> | ||
+ | } | ||
+ | |||
+ | function _output($output) | ||
+ | { | ||
+ | |||
+ | } | ||
+ | |||
+ | public function _remap($method) | ||
+ | { | ||
+ | $this->maintenance(); | ||
} | } |
Version du 16 février 2014 à 15:52
Méthodes particulière
//
function index() //appelé par defaut
{
}
function __construct() //constructeur, ouvert avant chaque appel de methode { parent::__construct(); //obligatoire }
function _output($output) { }
public function _remap($method) { $this->maintenance(); }