Welcome Guest, Not a member yet? Register   Sign In
HMVC structure and admin module
#1

[eluser]Richko[/eluser]
Hello, how can i realise this structure with HMVC?

modules
-pages
--controllers
---pages.php
---admin
----admin.php
--models
--views

i saw this in BLAZE but i didn't understant how to call admin.php for pages controller and how to route

thanks
#2

[eluser]wiredesignz[/eluser]
Modular Extensions HMVC does not support sub directories within the module/controllers directory at present.

You are welcome to alter the MY_Router class to provide this feature for yourself.
#3

[eluser]Richko[/eluser]
i don't have enough knowledge to extend MY_ROUTER class with this feature... are there any simple solutions? maybe it is possible to load another controller from pages/controllers, not from sub directory?
#4

[eluser]Phil Sturgeon[/eluser]
The search tool is your friend. I have answered this one myself a hundred times.
#5

[eluser]umefarooq[/eluser]
with HMVC just simple make your directory sturcture like this

modules
-admin
—controllers
—-pages.php
——admin.php
—models
—views

if you are calling admin controller than admin.php will be called url like this

http://www.yoursite./amdin

if you are calling page controller from admin like this

http://www.yoursite./amdin/page
#6

[eluser]khancute[/eluser]
hello there, i have my application folder structure:

controllers
-main.php
modules
-admin
--listing
---controllers
----listing.php
---views
----vListing.php
-agent

Using the modular extension library i manage to load listing.php controller from main.php controller using modules::run(), but i can't load the vListing.php view, the problem was the views folder cannot be under modules sub-dir, any idea how to make this work

thanks
#7

[eluser]wiredesignz[/eluser]
Modular Extensions - HMVC version 5.2.14 does allow loading resources from module sub-directories.




Theme © iAndrew 2016 - Forum software by © MyBB