Problems with creating subfolders in CodeIgniter 3 HMVC |
I have a project that contains several subfolders, such as:
model+view+controller signup(sub sub folder ) model+view+controller
Code: $route['default_controller'] = "admin/signin/signin";
HMVC was not created to use sub-folder, I think someone on here modified the source code to
make it work. You would new to search the forums at the bottom HMVC What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
From what I remember is that the way it was designed was that you had a structure like this:
./application -- modules -- -- module name -- -- -- config -- -- -- controllers (controller name should match module name for default controller - controllers can have sub-folders) -- -- -- routes -- -- -- views (views can also have sub folders) Did you add this to your config.php file? PHP Code: $config['modules_locations'] = array( That tells it where to find the modules. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(06-07-2018, 09:41 AM)InsiteFX Wrote: From what I remember is that the way it was designed was that you had a structure like this: Yeas, I have this bit of code in my config files..but its not working
As I said before Wiredesignz HMVC was not designed to be used like that.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
If you want to learn about Wiredesignz HMVC then create an account on this site and and also read the forums.
David's - The Insider Club What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Like I said before it is the way that it was designed, it has to have the ModuleName first.
You can try creating your own routes file in your modules. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |