Controllers does not show when i use them in URL |
In the Docs in this page
https://codeigniter.com/user_guide/incom...llers.html the first example , i created the controller PHP Code: <?php namespace App\Controllers; then i visited this URI https://localhost/www/igniterTest/public/helloworld But what is get was this a 404 page So where is the problem ? is it possible to access controllers without going through routes first ? Increase Your Awareness
Did you name your file Helloworld.php with a capital H? It won't work otherwise.
Have you disabled $routes->setAutoRoute(true); in App\Config\Routes? As it needs to be true, to automatically find it.
(07-16-2020, 07:18 AM)jreklund Wrote: Did you name your file Helloworld.php with a capital H? It won't work otherwise. Yes its capital , the problem was in $routes->setAutoRoute(false); i made it $routes->setAutoRoute(true); thank you for help Increase Your Awareness
(07-16-2020, 12:02 PM)ChicagoPhil Wrote: Try The problem was in $routes->setAutoRoute(true); it was false , thank you Increase Your Awareness
(07-16-2020, 03:57 PM)BlackBanana Wrote:(07-16-2020, 12:02 PM)ChicagoPhil Wrote: Try That’s why the man has all those stars by his name. ?
(07-16-2020, 10:20 PM)ChicagoPhil Wrote:(07-16-2020, 03:57 PM)BlackBanana Wrote:(07-16-2020, 12:02 PM)ChicagoPhil Wrote: Try Yes he is an admin , of corse he has a vast experience in codeigniter, we should all help each other to give something to open source community Increase Your Awareness
Great that it all worked out. The amount of stars (and title) are based on number of posts. So if you keep on posting you will automatically get more stars and a new title.
|
Welcome Guest, Not a member yet? Register Sign In |