Point your browser to http://localhost/CakeTooDoo/tasks/index, this should
show you the page.
If you want to make the tasks/index page your home page, then open
/app/config/routes.php and find the following line there,
Router::connect('/', array('controller' => 'tasks', 'action' =display',
'homedex'));
Replace this line with the following,
Router::connect('/', array('controller' => 'tasks', 'action' =>
'index'));
On Sun, Nov 2, 2008 at 12:29 PM, pritz <[EMAIL PROTECTED]> wrote:
>
> Hello Members,
>
> 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.
>
> >
>
--
Anupom Syam
http://syamantics.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---