Welcome Guest, Not a member yet? Register   Sign In
Multiple application css issue
#1

[eluser]ravi_kachh[/eluser]
Hello friends,

I m developing multiple project in codeigniter interface.
my structure is...
system
--->application
------>app1
--------->config
--------->model
--------->controller
--------->css
--------->images
------>app2
--------->config
--------->model
--------->controller
--------->css
--------->images

etc...
The problem that i am facing is that my css and images are not working properly. I am unable to face css file in my view model page.
Can any one explain me that where should i place my css and images folder and how can i call them to the page.

Thanks,
Ravi
#2

[eluser]John_Betong[/eluser]
 
There are many different ways to solve your problem if you search the forum.

I prefer to save the CSS file in my views folder and use the following code to access the CSS file:
Code:
<html>
  <head>
    <link type='text/css' href='/my_application_folder/views/style_001.css' rel='stylesheet' />
  </head>
 
 
 
#3

[eluser]tomcode[/eluser]
I never keep any public accessed file (CSS, Javascript, a.s.o) in the application folder, but under the public web root, usually under the folder assets.

I use the HTML base tag to allow relative URL's to my assets and have shorter paths.




Theme © iAndrew 2016 - Forum software by © MyBB