Welcome Guest, Not a member yet? Register   Sign In
Multiple sites: can I have assets per module?
#1

[eluser]Mel [RS][/eluser]
Hi guys I've a problem and i've searched in the forum but with not luck.

I've running multiple applications with one CI installation, and this is the structure:

/
/modules
/module1
/config...
/module2
/config...
/system <-- CI

So I need to use css and js per module, so I've to put thats files into /module-x folder but I can't to make it works.

Please any help!
#2

[eluser]Thorpe Obazee[/eluser]
If you want to run multiple applications with only one CI system folder, you should probably have multiple front controllers for the different applications.
#3

[eluser]Phil Sturgeon[/eluser]
Or take a look at this article which shows you "How to: Multi-site CodeIgniter Set-up".
#4

[eluser]Mel [RS][/eluser]
Hi guys thanks for your replies.

I have one controller per module or application, that's ok. But my problem is not that, my problem is the assets files like css, js, etc.

I need one assets folder per module. I've running the apps with one assets folder for all modules, but I need one for each module.

I hope to be more clear for your help, thanks in advance.
#5

[eluser]Phil Sturgeon[/eluser]
Ok, check out my Asset library.

First param is file name (sub-folders are fine), 2nd param (optional) is module name. There is config file to change file paths and whatnot.
#6

[eluser]Mel [RS][/eluser]
Ok I'll check it thanks!!




Theme © iAndrew 2016 - Forum software by © MyBB