Welcome Guest, Not a member yet? Register   Sign In
How to link to Ci modules
#1

Hi, i did a fresh install of CI today and i am trying implement a moduler site but i am stuck.
I have created a Modules folder and inside the modules folder there are 4 modules
Admin = admin dashboard and everything admin
Auth = user registration/login and everything auth
Core = index page and everything site core
Users = users accounts, profiles and everything about the user.
So i want my core module to be the landing page. e.g if a user visites my site he will land on a page from core module.
This is what i have done.
i have list all my modules in app/config/autoload like so
'Modules\Core' => APPPATH . 'module/Core',
created a Views folder
created a Controllers folder
created Config folder
and all the corresponding folders but they are empty xcept the Controllers and the Views folders
i have copied the Home controller to Modules/Core/Controllers and changed the namespace to Modules\Core\Controllers and change the view to ('Modules/Core/Views/welcome_message')
I have edited app/config/routes to ('/', '\Modules\Core\Controllers\Home::index').
i am getting 404 sorry, cannot seem to find the your looking for.
Thanks in advance.
Reply


Messages In This Thread
How to link to Ci modules - by osebo - 10-15-2023, 06:24 AM
RE: How to link to Ci modules - by JustJohnQ - 10-15-2023, 09:34 AM
RE: How to link to Ci modules - by osebo - 10-16-2023, 01:53 AM
RE: How to link to Ci modules - by kenjis - 10-15-2023, 03:17 PM
RE: How to link to Ci modules - by davis.lasis - 10-16-2023, 07:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB