Code module not setting up - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Code module not setting up (/showthread.php?tid=82851) Pages:
1
2
|
RE: Code module not setting up - leafface - 09-01-2022 (08-30-2022, 02:01 PM)kenjis Wrote: $routes->get('(:any)', 'Pages::view/$1'); Oh my gosh, yes. Thank you. (08-30-2022, 02:01 PM)kenjis Wrote: See https://codeigniter4.github.io/CodeIgniter4/outgoing/views.html#namespaced-views Yes, that did it, thank you. (That's what happens when you read a lot of user guide at once, you forget half of it.) (08-31-2022, 12:13 AM)InsiteFX Wrote: He should not have the modules route in the main route file. It was only there to make it work. It was inside the module's route file too. (I should have mentioned this.) (08-31-2022, 12:13 AM)InsiteFX Wrote: As for the view he needs to pass the full namespace with it. Yes, now it works, thank you. |