APPPATH/Controllers/Products.php : 19 — CodeIgniter\Debug\Exceptions->errorHandler ()
12 13 $pager = \Config\Services::pager(); 14 $list = model('App\Models\ProductCategories')->orderBy('sira', 'ASC')->findAll(); 15 16 17 $pageImage = getAssets('pageimage', 'urunler', 1); 18 $detail = model('App\Models\ProductsPage')->first(); 19 $this->setSeoTags([$detail->seotitle, true], $detail->seodesc, $detail->seokey); 20 return view('products', compact('list', 'pager', 'pageImage')); 21 } 22 23 public function detail($slug, $id = null) 24 { 25 if (is_null($id)) { 26 $detail = model('App\Models\ProductCategories')->where('url', $slug)->first();SYSTEMPATH/CodeIgniter.php : 927 — App\Controllers\Products->index ()
920 $output = $class->_remap($this->method, $params); 921 } else { 922 // This is a Web request or PHP CLI request 923 $params = $this->router->params(); 924 925 $output = method_exists($class, '_remap') 926 ? $class->_remap($this->method, ...$params) 927 : $class->{$this->method}(...$params); 928 } 929 930 $this->benchmark->stop('controller'); 931 932 return $output; 933 } 934SYSTEMPATH/CodeIgniter.php : 482 — CodeIgniter\CodeIgniter->runController ()
475 if (! method_exists($controller, '_remap') && ! is_callable([$controller, $this->method], false)) { 476 throw PageNotFoundException::forMethodNotFound($this->method); 477 } 478 479 // Is there a "post_controller_constructor" event? 480 Events::trigger('post_controller_constructor'); 481 482 $returned = $this->runController($controller); 483 } else { 484 $this->benchmark->stop('controller_constructor'); 485 $this->benchmark->stop('controller'); 486 } 487 488 // If $returned is a string, then the controller output something, 489 // probably a view, instead of echoing it directly. Send it alongSYSTEMPATH/CodeIgniter.php : 351 — CodeIgniter\CodeIgniter->handleRequest ()
344 345 // spark command has nothing to do with HTTP redirect and 404 346 if ($this->isSparked()) { 347 return $this->handleRequest($routes, $cacheConfig, $returnResponse); 348 } 349 350 try { 351 return $this->handleRequest($routes, $cacheConfig, $returnResponse); 352 } catch (RedirectException $e) { 353 $logger = Services::logger(); 354 $logger->info('REDIRECTED ROUTE at ' . $e->getMessage()); 355 356 // If the route is a 'redirect' route, it throws 357 // the exception with the $to as the message 358 $this->response->redirect(base_url($e->getMessage()), 'auto', $e->getCode());FCPATH/index.php : 67 — CodeIgniter\CodeIgniter->run ()
60 *--------------------------------------------------------------- 61 * LAUNCH THE APPLICATION 62 *--------------------------------------------------------------- 63 * Now that everything is setup, it's time to actually fire 64 * up the engines and make this app do its thang. 65 */ 66 67 $app->run(); 68