public function __construct() { parent::__construct(); // initializers for all the domain-specific core classes // they are here instead of the initializer in order to them to be able to access this controller instance from their static methods // Estado::init(); Municipio::init(); Parroquia::init(); User::init(); Log::init(); // register this controller in the Log class // this is neccesary when working with multiples controllers (in non-standalone mode, for example) // Log::register_me($this); $this->load->database(); $this->lang->load('db', 'spanish'); $this->lang->load('form_validation', 'spanish'); }