/** * Run * PHP5.4: Declaration of users_controller::run() should be compatible with front_controller::run($route, $params) : 2048 * @return template */ public function run($r, $params = null) { // base routes if ($this->router->get_current_route()) { return parent::run($r, $params); } $this->set_section_name('users'); // default action if (empty($r->action)) { $r->action = 'users'; } $this->set_req($r); if (!is_callable(array($this, $r->action))) { throw new controller_exception('No such action', router_exception::ERROR); } // call method core::dprint('users_controller::' . $r->action); call_user_func(array($this, $r->action), $r); return $this->get_template(); }