[eluser]Ivan Augusto[/eluser]
Hello, i need assistance =]~
I created this Controller:
Code:
class Projects extends Controller {
function Projects()
{
parent::Controller();
}
function index()
{
$data['title'] = "Projects";
$data['projects'] = $this->db->get('projects');
$this->load->view('projects',$data);
}
}
And this view:
Code:
<html>
<head>
<title><?=title?></title>
</head>
<body>
<table border="1">
<? foreach ($projects as $project) : ?>
<tr>
<td><?=$project->id?></td>
<td><?=project->name?></td>
</tr>
<? endforeach; ?>
</table>
</body>
</body>
</html>
but I get this message:
Quote:A PHP Error was encountered
Severity: Notice
Message: Use of undefined constant titulo - assumed 'title'
Filename: views/projetos.php
HELP ME PLEASE ;D~
Thks 4all ;]~