Welcome Guest, Not a member yet? Register   Sign In
Custom urr variable for the resources?
#1

[eluser]tnathos[/eluser]
hi in my app use severals folders for locate css, imgs and js.

I use always the route whit the variable <?=base_url()?> for locate the resources. examples..

[removed][removed]
[removed][removed]
[removed][removed]
[removed][removed]
[removed][removed]
[removed][removed]

<link href="<?=base_url()?>system/files/grid/css/style.css" rel="stylesheet" type="text/css" />
<link href="<?=base_url()?>system/files/grid/css/flexigrid.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="<?=base_url()?>system/files/jsc/themes/base/ui.all.css" rel="stylesheet" />
<link rel="stylesheet" href="<?=base_url()?>system/files/styleMenu.css" type="text/css" />
<link rel="stylesheet" href="<?=base_url()?>system/files/styles.css" type="text/css" />
<link rel="stylesheet" href="<?=base_url()?>system/files/stylesUser.css" type="text/css" />

I think if i can make other variables for out the locate complete and reduce the code in the view, and put this variable in a file the config but i dont know in where can. i like this example.

$jqueryfolder = "<?=base_url()?>system/files/jsc/";
$cssfolder = "<?=base_url()?>system/files/css/";

and use...

[removed][removed]

thanks for the advance




Theme © iAndrew 2016 - Forum software by © MyBB