Extend CI's controller to automatically load language files

This commit is contained in:
Eike Foken
2011-08-08 00:33:26 +02:00
parent 956ebb8ae3
commit 891caabb56
11 changed files with 53 additions and 57 deletions

View File

@@ -25,7 +25,7 @@
/**
* @author Karsten Heiken <karsten@disposed.de>
*/
class Projects extends CI_Controller {
class Projects extends MY_Controller {
/**
* Constructor.
@@ -34,9 +34,6 @@ class Projects extends CI_Controller {
parent::__construct();
$this->load->model('project');
$this->load->model('trial');
// load language file
$this->lang->load(strtolower($this->router->class));
}
/**