Welcome Guest, Not a member yet? Register   Sign In
Paths for css and javascript files for modules
#1

[eluser]boony[/eluser]
Hi All,

I'm just starting out with Modules (using Matchbox) and have a quick question re pointing to the css and javascript files in the module.

My directory setting is as follows
Code:
modules/
    /my_module
        /assets
            /css
                /my_module_style.css
            /js
                /my_module_script.js
            /images
        /controllers
        /config
        /models
        /views
            /my_module_template.php

I just need to point to the my_module/assets/css/my_module_style.css in the template to load the appropriate css or javascript file.

So, what is the correct path: I've tried a couple of different combinations around..

Code:
<link rel=stylesheet ahref=<?=base_url()?>assets/css/my_module_style.css

but can't seem to find the correct way to do this.

Any help much appreciated.


Messages In This Thread
Paths for css and javascript files for modules - by El Forum - 07-17-2010, 06:31 PM
Paths for css and javascript files for modules - by El Forum - 07-19-2010, 02:23 AM
Paths for css and javascript files for modules - by El Forum - 07-19-2010, 03:06 AM
Paths for css and javascript files for modules - by El Forum - 07-19-2010, 03:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB