CodeIgniter Forums
Base url is freakin out - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Base url is freakin out (/thread-9906.html)



Base url is freakin out - El Forum - 07-12-2008

[eluser]Jesse2303[/eluser]
Hi al

Every time I add my base url for loading my css I get a blanc page

Code:
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>system/application/view/reset.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>system/application/view/style.css" media="screen" />

This is the 2 lines of code from my css style. And when I look @ the soucrecode I get this

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;html &gt;

&lt;head&gt;
&lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"/&gt;
&lt;meta name="description" content="Alles over het coden van websites in verschillende talen o.a. PHP, (x)HTML, CSS, MySQL. Ook over de framework Code Igniter kan je hier veel vinden"/&gt;
&lt;meta name="keywords" content="Coder, Coding, PHP, HTML, SQL, MYSQL, JAVA, COCOA, JAVASCRIPT, JS, PreHypertex Processor, CodeIgniter, HTML, CSS, xHTML" /&gt;
&lt;meta name="author" content="Jesse Struyvelt" /&gt;

&lt;link rel="stylesheet" type="text/css" href="


It stops where the PHP standing, also, if i set the hole path, and i use the anchor function nothing appears Sad

Code:
&lt;?=anchor('main/home', 'Home');?&gt;

I use that for anchor function..
Somebody can help me ?

Woops, i forgot the $this->load->helper('url');