[eluser]Bionicjoe[/eluser]
I'm making some headway learning CI, but before I get too far how do I re-use code for site's pages like you do with PHP includes?
Specifically I have all my header, css, basic layout info at the top of two view pages. I want to use the same info on all pages.
Do I:
A) Create a php include file and use it like any other non-CI php project?
B) Use CI model/views to call and insert the same code?
The type of junk on every page.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title><?php echo $title ?></title>
<meta http-equiv="Content-Type" content="text/html"; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>system/application/css/layout.css" media="screen">
</head>
<body>