Welcome Guest, Not a member yet? Register   Sign In
css and images
#4

[eluser]the real rlee[/eluser]
I usually set a few variables within my config file then create a helper (much like url_helper) to set the explicit url to my images:

Code:
// config.php

$config['image_url'] = 'images';

Code:
// asset_helper.php


function image_url() {
    $CI =& get_instance();
    return base_url().$CI->config->slash_item('image_url');
}


Messages In This Thread
css and images - by El Forum - 07-04-2007, 03:59 AM
css and images - by El Forum - 07-04-2007, 04:19 AM
css and images - by El Forum - 07-04-2007, 06:03 PM
css and images - by El Forum - 07-04-2007, 07:28 PM
css and images - by El Forum - 07-15-2007, 05:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB