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

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -