Re: 404 in CodeIgniter3 application
"J.O. Aho" <[email protected]> Thu, 13 Apr 2023 07:40:04 +0200
| Newsgroups | comp.lang.php |
|---|---|
| Message-ID | <[email protected]> |
On 4/12/23 18:25, Jivanmukta wrote:
> I am trying to solve a problem of 404 in my COdeIgniter3 application.
> The problem occurs because of problem in core/Codeigniter.php:
> echo 'BEFORE call_user_func_array';
> var_dump($CI, $method, $params);
> call_user_func_array(array(&$CI, $method), $params);
>
> // Mark a benchmark end point
> $BM->mark('controller_execution_time_( '.$class.' / '.$method.' )_end');
> echo 'AFTER call_user_func_array ';
>
> BEFORE is displayed, AFTER is not displayed.
I guess it hard fails at call_user_func_array
> var_dump displays object Main, method index, empty array params.
If the method called don't need parameters
> I have a controller
> class Main extends MY_Controller {
> public function index() {
Most likely something that goes wrong when you call index(), debug that one.
>
> In folder /home/robert/Projekty/praca/application/controllers I have
> file Main.php
> In file /home/robert/Projekty/praca/application/config/routes.php I have:
>
> $route['default_controller'] = 'main';
Not sure if it's case sensitive, never used CodeIgniter3, you may need
to change to Main.
--
//Aho