Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. <link rel="stylesheet" type="text/css" href="<? echo base_url();?>css/all.css">
  2.  
  3. $config['base_url'] = 'http://webscarlets.com/ci/index.php';
  4. $config['index_page'] = 'index.php';
  5.  
  6. <link rel="stylesheet" type="text/css" href="<? echo base_url();?>/css/all.css">
  7.  
  8. $config['base_url'] = 'http://webscarlets.com/ci/';
  9.  
  10. <?php echo link_tag('css/mystyles.css'); ?>
  11.  
  12. <link href="http://site.com/css/mystyles.css" rel="stylesheet" type="text/css" />
  13.  
  14. Options +FollowSymLinks
  15. Options -Indexes
  16. DirectoryIndex index.php
  17. RewriteEngine on
  18. RewriteCond $1 !^(index.php|images|styles|scripts|robots.txt|favicon.ico)
  19. RewriteCond %{REQUEST_FILENAME} !-f
  20. RewriteCond %{REQUEST_FILENAME} !-d
  21. RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
  22.  
  23. define("LAYOUT_URL","http://localhost/yoursite/css/");
  24.  
  25. <link rel="stylesheet" type="text/css" href="<?php echo LAYOUT_URL;?>all.css">
  26.  
  27. //config.php
  28. $config['base_url'] = 'http://webscarlets.com/ci/';
  29. $config['index_page'] = 'index.php';
  30.  
  31. $this->load->helper('url');
  32.  
  33. echo base_url()
  34.  
  35. <div id='content'> <?php echo $content; ?> </div> -> css is not display
  36. <div style='background-color:red;'> <?php echo $content; ?> </div> -> css OK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement