CodeIgniter Forums
Undefined variable: title <title><?php echo $title;?></title> - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Undefined variable: title <title><?php echo $title;?></title> (/showthread.php?tid=46743)



Undefined variable: title <title><?php echo $title;?></title> - El Forum - 11-13-2011

[eluser]Unknown[/eluser]
Code:
<title><?php echo $title;?></title>
The above code seems to give me an error when I add it to my header file as shown below.
Code:
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title;?></title>

<link rel="stylesheet" href="<?php echo base_url();?>assets/css/style.css" type="text/css" />
</head>

Whay could be the problem guys.All the help will be appreciated.