Welcome Guest, Not a member yet? Register   Sign In
404, controller's method not called
#1

I am trying to solve a problem of 404 in my 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.
var_dump displays object Main, method index, empty array params.
I have a controller
class Main extends MY_Controller {
public function index() {
...

Please help.
Reply
#2

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';
$route['404_override'] = '';
Reply
#3

(04-09-2023, 03:17 AM)Address Wrote: http://localhost/~robert/praca/employee/list_offers works fine.
Address http://localhost/~robert/praca/main/index doesn't work (404).


[quote pid="408554" dateline="1681035477"]
http://localhost/~robert/praca/employee/list_offers
[/quote]


[quote pid="408554" dateline="1681035477"]
http://localhost/~robert/praca/employee/list_offers
[/quote]


[quote pid="408554" dateline="1681035477"]
http://localhost/~robert/praca/employee/list_offers
[/quote]
Reply




Theme © iAndrew 2016 - Forum software by © MyBB