Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #19425
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "J.O. Aho" <user@example.net> |
| Newsgroups | comp.lang.php |
| Subject | Re: 404 in CodeIgniter3 application |
| Date | Thu, 13 Apr 2023 07:40:04 +0200 |
| Lines | 38 |
| Message-ID | <k9pitkFmrd5U1@mid.individual.net> (permalink) |
| References | <u16m1j$qj65$1@portraits.wsisiz.edu.pl> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net JG01hK03RCTUcQtsMm7kOgC7aqXUdXKAncHCdYB0u8zX/phTaz |
| Cancel-Lock | sha1:49jNWByOfMRDYSxddU6SY7PK/bI= |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 |
| Content-Language | en-US-large |
| In-Reply-To | <u16m1j$qj65$1@portraits.wsisiz.edu.pl> |
| Xref | csiph.com comp.lang.php:19425 |
Show key headers only | View raw
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