Welcome Guest, Not a member yet? Register   Sign In
Code module not setting up
#11

(This post was last modified: 09-01-2022, 07:20 AM by leafface.)

(08-30-2022, 02:01 PM)kenjis Wrote: $routes->get('(:any)', 'Pages::view/$1');
takes all the routes.

Oh my gosh, yes. Blush Thank you.

(08-30-2022, 02:01 PM)kenjis Wrote: See https://codeigniter4.github.io/CodeIgnit...aced-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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB