I am new in cake php
when i run my page this errror comes HTTP 404 not found
Please solve my problem
My code is
Model(task.php)
======================================
<?php
class Task extends AppModel{
var $name='Task';
}
?>
======================================
Controller(tasks_controller.php)
======================================
<?php
class TasksController extends AppController{
var $name='Tasks';
function index() {
$this->set('tasks', $this->Task->find('all'));
}
}
?>
=======================================
View(index.ctp)
=======================================
<h2>Tasks</h2>
<?php if(empty($tasks)): ?>
There are no tasks in this list
<?php else: ?>
<table>
<tr>
<th>Title</th>
<th>Status</th>
<th>Created</th>
<th>Modified</th>
<th>Actions</th>
</tr>
<?php foreach ($tasks as $task): ?>
<tr>
<td>
<?php echo $task ?>
</td>
<td>
<?php
if($task) echo "Done";
else echo "Pending";
?>
</td>
<td>
<?php echo $task ?>
</td>
<td>
<?php echo $task ?>
</td>
<td>
<!-- actions on tasks will be added later -->
</td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?>