[eluser]InsiteFX[/eluser]
Hi,
This is how I did it using a value in the application/config folder config.php
and using a controller and view:
Code:
// config.php
/*
|-------------------------------------------------------------------
| Path to html sytle sheets
|-------------------------------------------------------------------
| Prototype:
|
|
*/
$config['css'] = "public_html/css/main.css";
/*
|-------------------------------------------------------------------
| Copyright Information
|-------------------------------------------------------------------
| Prototype:
|
|
*/
$config['copyright'] = "Copyright© 2008 -";
$config['copyend'] = "by Your Company Name. all rights reserved Worldwide.";
/* End of file config.php */
/* Location: ./system/application/config/config.php */
// Controller.
$data['css'] = $this->config->item('css');
// Copyright Notice.
$data['copyright'] = $this->config->item('copyright');
$data['year'] = date("Y");
$data['copyend'] = $this->config->item('copyend');
$this->load->view('home', $data);
// html view file.
<?php $this->load->view('header_view'); ?>
<?php $this->load->view('footer_view'); ?>
// header_view.php
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $mywebtitle ?></title>
<base href= <?php //echo "../application/views/$base";?> />
<meta <?php echo $myrobots ?> />
<link rel="stylesheet" type="text/css" href="<?php echo "http://localhost/apc_cms/$css";?>" />
</head>
// footer_view.php
<!-- Begin #footer -->
<div id="footer">
<?php echo "$copyright $year $copyend"; ?><br />
</div>
<!-- End #footer -->
Enjoy
InsiteFX