Welcome Guest, Not a member yet? Register   Sign In
im confused.
#1

[eluser]tonyhh[/eluser]
So im new with this framework and MVC all together, I have this code:
Code:
<?=base_url();?>style/style.css
and it's not working, it's coming up as if the folder doesn't exist. The folder is

http://localhost/ci/application/style/style.css

and here's my config
Quote:$config['base_url'] = 'http://localhost/ci/
What am I doing wrong with the urls?
#2

[eluser]tonyhh[/eluser]
Someone help please
#3

[eluser]John_Betong_002[/eluser]
Try this:

Code:
<?php
  // DEBUG
  error_reporting(-1);
  ini_set('display_errors',1);

  echo base_url() . 'style/style.css ';
  die;
?>
 
 
 
#4

[eluser]tonyhh[/eluser]
The css refuses to show up, even if the base url is http://localhost/ci/application/ or http://localhost/ci/
and when I used that code above, it just outputted the base url with /style/style.css
#5

[eluser]tonanbarbarian[/eluser]
view the source of the resulting page and copy and paste the exact link it is creating here and someone may be able to work out what it is doing wrong based on that
#6

[eluser]tonyhh[/eluser]
Fixed using:

RewriteEngine On
RewriteBase /ci/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /ci/index.php/$1 [L]




Theme © iAndrew 2016 - Forum software by © MyBB