web applications - Where do I put image files, css, js, etc. in Codeigniter? -



web applications - Where do I put image files, css, js, etc. in Codeigniter? -

where acceptable set css folders , image file folders? thinking within view folder? controller reroutes path base of operations url have specify path in .html file sits, redundant.

i have setup this:

application system assets js imgs css

i have helper function returns total path depending on setup.. similar to:

application/helpers/utility_helper.php:

function asset_url(){ homecoming base_url().'assets/'; }

i maintain mutual routines similar in same file , autoload codeigniters autoload configuration. note: autoload url helper base_url() access.

application/config/autoload.php:

$autoload['helper'] = array('url','utility');

you have access asset_url() throughout code.

codeigniter web-applications frameworks codeigniter-2

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -