-
APPPATH/Modules/Congres/Controllers/CongresFrontController.php : 43 — Modules\Congres\Models\CongresModel->getBySlug ()
36 /** 37 * admin dashboard 38 * @return view 39 */ 40 public function view() 41 { 42 $slug = $this->request->uri->getSegment(2); 43 $this->data['congres'] = $this->model->getBySlug($slug); 44 if (empty($this->data['congres'])) { 45 return redirect()->to('/404'); 46 } 47 $this->data['courses'] = $this->model->getCourses($this->data['congres']->congres_id, 1); 48 // si l'utilisateur est connecté on vérifie s'il' est déjà inscrit à une des formation 49 if ($this->session->get('user_id')) { 50 $courseModel = new CourseModel;
-
SYSTEMPATH/CodeIgniter.php : 934 — Modules\Congres\Controllers\CongresFrontController->view ()
927 protected function runController($class) 928 { 929 // This is a Web request or PHP CLI request 930 $params = $this->router->params(); 931 932 $output = method_exists($class, '_remap') 933 ? $class->_remap($this->method, ...$params) 934 : $class->{$this->method}(...$params); 935 936 $this->benchmark->stop('controller'); 937 938 return $output; 939 } 940 941 /**
-
SYSTEMPATH/CodeIgniter.php : 499 — CodeIgniter\CodeIgniter->runController ()
492 if (! method_exists($controller, '_remap') && ! is_callable([$controller, $this->method], false)) { 493 throw PageNotFoundException::forMethodNotFound($this->method); 494 } 495 496 // Is there a "post_controller_constructor" event? 497 Events::trigger('post_controller_constructor'); 498 499 $returned = $this->runController($controller); 500 } else { 501 $this->benchmark->stop('controller_constructor'); 502 $this->benchmark->stop('controller'); 503 } 504 505 // If $returned is a string, then the controller output something, 506 // probably a view, instead of echoing it directly. Send it along
-
SYSTEMPATH/CodeIgniter.php : 368 — CodeIgniter\CodeIgniter->handleRequest ()
361 $this->response->send(); 362 $this->callExit(EXIT_SUCCESS); 363 364 return; 365 } 366 367 try { 368 return $this->handleRequest($routes, $cacheConfig, $returnResponse); 369 } catch (RedirectException $e) { 370 $logger = Services::logger(); 371 $logger->info('REDIRECTED ROUTE at ' . $e->getMessage()); 372 373 // If the route is a 'redirect' route, it throws 374 // the exception with the $to as the message 375 $this->response->redirect(base_url($e->getMessage()), 'auto', $e->getCode());
-
FCPATH/index.php : 79 — CodeIgniter\CodeIgniter->run ()
72 *--------------------------------------------------------------- 73 * LAUNCH THE APPLICATION 74 *--------------------------------------------------------------- 75 * Now that everything is setup, it's time to actually fire 76 * up the engines and make this app do its thang. 77 */ 78 79 $app->run(); 80