Hello Everyone,

Once again I feel the need to enlist the help of the mailing list :)

I am trying to create an application that will have 4 front-ends to it. There will be ISP Reports, ISP Admin, NSG Reports, NSG Admin.

I was thinking of making these modules so that they could be accessed something like the following.

http://www.domain.com/isp/module/controller/action
http://www.domain.com/nsg/module/controller/action

and use a custom static route to make them map properly.

The issue that comes into play is the actual directory structure and the applications moduleDirectory configuration.

I would like to structure my application like this

/application/modules/nsg/admin/controllers
/application/modules/nsg/admin/models
/application/modules/nsg/admin/views

/application/modules/nsg/reports/controllers
/application/modules/nsg/reports/models
/application/modules/nsg/reports/views

/application/modules/isp/admin/controllers
/application/modules/isp/admin/models
/application/modules/isp/admin/views

/application/modules/isp/reports/controllers
/application/modules/isp/reports/models
/application/modules/isp/reports/views

I would need to change the module directory configuration on the fly depending on the URL, if you requested /nsg/ in the url then I would set the module directory to /application/modules/nsg/, etc.

Is this possible to do and if so where would I put this code? In the bootstrap or in the index.php just before the ->run()

Thanks,
Joseph Crawford

Reply via email to