Hi,

new to cake and trying to get this tutorial up and running.

Installed XAMPP (Windows 1.5.3a)  and Cake (cake_1.1.3.2967)

Followed the instruction but when I try to access the URL in section 9,
in my case
http://localhost/posts/index, I just get an error message

"You are seeing this error because the action index is not defined in
controller PostsController

Notice: this error is being rendered by the
app/views/errors/missing_action.thtml view file, a user-customizable
error page for handling invalid action dispatches.


Fatal: Create Method:

<?php
    class PostsController extends AppController
    {
        function index()
        {

        }
    }
?>


in file : app\controllers\posts_controller.php

Error: Unable to execute action index in PostsController"



heres the contents of my posts_controller.php



"<?php

class PostsController extends AppController
{
var $name = 'Posts';
}

function index() {

        $this->set('posts',$this->Post->findAll()); 
} 




?>"

any ideas?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to