diff --git a/application/core/MY_Controller.php b/application/core/MY_Controller.php index 58dbf92..5820c8b 100644 --- a/application/core/MY_Controller.php +++ b/application/core/MY_Controller.php @@ -16,8 +16,8 @@ public function __construct() parent::__construct(); $this->load->helper('inflector'); - - $model = strotolower(singular(get_class($this))); + + $model = strtolower(singular(get_class($this))); if (file_exists(APPPATH . 'models/' . $model . '_model.php')) { @@ -77,7 +77,7 @@ public function _remap($method, $parameters) protected function _run_filters($what, $action, $parameters) { $what = $what . '_filters'; - + foreach ($this->$what as $filter => $details) { if (is_string($details))