• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CSS file is not loading

#11
[eluser]wekadesign[/eluser]
i think, it`s more secure if you place your css file not on your APPPATH, You can add under directory_your_ci_apps_in for example

- system
- application
- chace
- etc...
- css --> add your css file inside this folder

and you can access with

<? echo link_tag('css/mystyles.css'); ?>

or

<link rel=“stylesheet” type=“text/css” href=“<?=base_url();?>css/action.css” media=“screen,projection” />

if you remove index.php with adding .htaccess file, you must create htaccess file like this

RewriteEngine on
RewriteCond $1 !^(index\.php|css|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.