[eluser]flumps[/eluser]
[quote author="Rick Jolly" date="1187063380"]We're here to help.
Since the header view is being loaded from a view, the easiest thing to do would be to create a global variable $base_view. To create global variables that are available to all your views, use $this->load->vars() like so:
Code:
class Pages extends Controller {
function Pages()
{
parent::Controller();
$data['base_view'] = $this->config->view('base_view');
$this->load->vars($data);
}
...
}
Then in the header.php view you could write it like coolfactor suggested:
Code:
<link href="<?=$base_view;?>style.css" rel="stylesheet" type="text/css">
[/quote]
Ive tryed that I now get..
Fatal error: Call to undefined method CI_Config::view() in /home/username/domains/domain/public_html/system/application/controllers/pages.php on line 8
line 8 reads... $data['base_view'] = $this->config->view('base_view');