Welcome Guest, Not a member yet? Register   Sign In
The page does not open correctly:(
#1

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!';
}
Reply
#2

PHP Code:
$routes->get('page2101''Page::page2101'); 
---------------------------------------------|

These must match the controller and method name case sensitive.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB