• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The page does not open correctly:(

I have a page on codeignater 4. In the browser, the page opens correctly, but when I redirect to this page, the 404 page opens, and then if I refresh the page again, then it loads again correctly. Why could this be? 

also if I send a request to the page with ajax, then 404 opens, and it works correctly in the browser

My routes:
$routes->get('page2101', 'page::page2101');

My controller "Page"

public function page2101() {
echo 'Hello World!';

PHP Code:
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.