Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #19425
| From | "J.O. Aho" <user@example.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: 404 in CodeIgniter3 application |
| Date | 2023-04-13 07:40 +0200 |
| Message-ID | <k9pitkFmrd5U1@mid.individual.net> (permalink) |
| References | <u16m1j$qj65$1@portraits.wsisiz.edu.pl> |
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
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar
404 in CodeIgniter3 application Jivanmukta <jivanmukta@poczta.onet.pl> - 2023-04-12 18:25 +0200
Re: 404 in CodeIgniter3 application "J.O. Aho" <user@example.net> - 2023-04-13 07:40 +0200
Re: 404 in CodeIgniter3 application Arno Welzel <usenet@arnowelzel.de> - 2023-04-13 09:22 +0200
Re: 404 in CodeIgniter3 application Jivanmukta <jivanmukta@poczta.onet.pl> - 2023-04-14 11:24 +0200
Re: 404 in CodeIgniter3 application doctor@doctor.nl2k.ab.ca (The Doctor) - 2023-04-14 11:50 +0000
Re: 404 in CodeIgniter3 application "J.O. Aho" <user@example.net> - 2023-04-14 19:12 +0200
Re: 404 in CodeIgniter3 application Angel <heyeeeeeeeeeeeeeeeeeee@gmail.com> - 2023-04-15 11:35 -0700
Re: 404 in CodeIgniter3 application Jivanmukta <jivanmukta@poczta.onet.pl> - 2023-04-27 16:38 +0200
Re: 404 in CodeIgniter3 application Angel <heyeeeeeeeeeeeeeeeeeee@gmail.com> - 2023-04-15 11:35 -0700
csiph-web