Database name:caketodo
table name:tasks
CakeTooDoo\app\views\tasks\index.cpt
<h2>Tasks</h2>
CakeTooDoo\app\controllers\tasks_controller.php
<?php
class TasksController extends AppController{
var $name='Tasks';
function index()
{
$this->set('tasks', $this->Post->find('all'));
}
}
?>
\CakeTooDoo\app\models\task.php
<?php
class Task extends AppModel {
var $name='Task';
}
?>
This is how i started instead of showing message <h2>Tasks</h2> it is
showing me the index page of CakeTooDoo directory ...
CakePHP Rapid Development
Your database configuration file is present.
Cake is able to connect to the database.
CakePHP release information is on CakeForge
Read the release notes and get the latest version
Editing this Page
To change the content of this page, create: /app/views/pages/
home.thtml.
To change its layout, create: /app/views/layouts/default.thtml.
See the views section of the manual for more info
You can also add some CSS styles for your pages at: app/webroot/css/.
More about Cake
CakePHP is a rapid development framework for PHP which uses commonly
known design patterns like Active Record, Association Data Mapping,
Front Controller and MVC.
....
Please let me know what i am missing.
I am working on WAMP on window xp.
Plz help to solve this.
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment