[eluser]ICEcoffee[/eluser]
I get this error when loading a simple view file from my default controller:
Quote:Fatal error: Call to undefined function base_url() in H:\xampp\htdocs\ci2\application\views\home_view.php on line 6
Line from 'home_view.php'
Code:
<link rel='stylesheet' href='<?php echo site_url(’styles/style.css’) ?>' type='text/css' media='screen' charset='utf-8' />
my config file:
Code:
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://www.your-site.com/
|
*/
$config['base_url'] = "http://localhost/ci2/";