Welcome Guest, Not a member yet? Register   Sign In
Can you assign a base url for a particular folder in your config file?
#3

[eluser]InsiteFX[/eluser]
I made a helper to do things like that, just change to your paths.

Code:
// ------------------------------------------------------------------------

/**
* Helper asset_url()
*
* @access public
* @param string
* @return string
*/
if ( ! function_exists('asset'))
{
function asset($uri)
{
  $_ci = get_instance();
                           //    | change your path here
  return $_ci->config->base_url('assets/'.$uri);
}
}

Need more just copy and rename.


Messages In This Thread
Can you assign a base url for a particular folder in your config file? - by El Forum - 06-28-2014, 06:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB