![]() |
Today (2022-07-27), I'm reproducing https://codeigniter.com/user_guide/tutor...pages.html steps, but at the session "You can now try several URLs in the browser location field, to see what the Pages controller you made above produces…" (at bottom) the following URL (column) on the table doesn't produces the Will show (column):
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() I'm using CodeIgniter Version 4.2.1, PHP Version 7.4.30, PHP SAPI cli-server, Environment development, Base URL http://localhost:8080/, ... started with: $ php spark serve Any suggestion? Thanks. development
Shortly you should learn how CI wild route
PHP Code: $routes->get('(:any)', 'Pages::view/$1'); Code: (pages/view) Code: localhost:8080/home Codeigniter First, Codeigniter Then You!!
yekrinaDigitals
Thank you for explanation.
Your steps (https://codeigniter.com/user_guide/tutor...pages.html) are working now with the code: PHP Code: $routes->get('pages/(:any)', 'Pages::view/$1'); ... instead of: PHP Code: $routes->get('(:any)', 'Pages::view/$1'); Now I understood. Thanks!
Thanks for reporting.
It appears that previous updates caused an inconsistency in the documentation. I sent a PR to fix: https://github.com/codeigniter4/CodeIgni...6304/files |
Welcome Guest, Not a member yet? Register Sign In |