Welcome Guest, Not a member yet? Register   Sign In
need help with modular assets
#1

[eluser]patie[/eluser]
hi,

i need assets for each modul. its posible with http://github.com/philsturgeon/codeigniter-asset or other library ?

i use modular separation (http://codeigniter.com/wiki/Modular_Extensions_-_HMVC)

my adressar structure look like :



-application
---config
---controllers
...
---modules
-----welcome
-------controllers
-------models
-------views


and i need some like


-application
---config
---controllers
...
---modules
-----welcome
-------controllers
-------models
-------views
-------js
-------img

or

-application
---config
---controllers
...
---modules
-----welcome
-------controllers
-------models
-------views
-------public
---------js
---------img


i trying codeigniter-asset from philsturgeon but dont work for me (dont know my.. maybe my bad) sry for my bad english and THANKS for help
#2

[eluser]pickupman[/eluser]
How about creating an assets folder, and creating subfolders that match your modules names?
application
-assets
--js
---welcome
--img
---welcome

I guess I don't want url's into my modules directory. A little security through obscurity.
#3

[eluser]patie[/eluser]
yes, you right.. I understand that my idea is not safe. your idea is not bad - i try it thanks




Theme © iAndrew 2016 - Forum software by © MyBB