Welcome Guest, Not a member yet? Register   Sign In
5 Apps with the same CI 2.x installation... justo one CSS folder ans JS folder
#1

[eluser]Unknown[/eluser]
I have 5 difrents Apps with just one CI 2.1 installation, BUT... I want to use a unic CSS and JS folder for all the Apps.

My base_url is something like this:
"http://localhost/ci21test"

My Apps Structures: Each app with his own index.php, config.php, database.php
"http://localhost/ci21test/applications/app1"
"http://localhost/ci21test/applications/app2"
"http://localhost/ci21test/applications/app3"
"http://localhost/ci21test/applications/app4"
"http://localhost/ci21test/applications/app5"

My CSS folder:
"http://localhost/ci21test/css"

My JS folder:
"http://localhost/ci21test/js"

Question:
Why my links did not work?
<link type="text/css" href="http://localhost/css/jquery-ui-1.8.18.custom.css" rel="stylesheet" />

[removed][removed]


ThankĀ“s

#2

[eluser]InsiteFX[/eluser]
Code:
<link type='text/css' href"http://localhost/ci21test/css/jquery-ui-1.8.18.custom.css); ?>" rel="stylesheet" />
#3

[eluser]CroNiX[/eluser]
As InsiteFX eluded to, you didn't include the subdirectory (ci21test) in the href of your link.
You say it's:
Code:
http://localhost/ci21test/css
But your link is written as if it's
Code:
http://localhost/css


If your base_url is
Code:
http://localhost/ci21test/ (supposed to have trailing /)

You should write:
Code:
<link type="text/css" href="<?php echo base_url('css/jquery-ui-1.8.18.custom.css'); ?>" rel="stylesheet" />




Theme © iAndrew 2016 - Forum software by © MyBB