this piece of code is in the post.php

<?php
   class Post extends AppModel {
   var $name = 'Post';
   }
   ?>



this piece of code in the posts_controller.php


<?php
    class PostsController extends AppController {
    var $name = 'Posts';
    function index() {
    $this->set('posts', $this->Post->find('all'));
    }
    function view($id = null) {
    $this->Post->id = $id;
    $this->set('post', $this->Post->read());
   }
   }
   ?>

I have done nothing complicated..!!! jus followed the blog tutorials





On Sep 8, 12:12 pm, brian <[email protected]> wrote:
> Can you post the controller action that throws this error?
>
> On Tue, Sep 8, 2009 at 12:09 AM, new2cakephp<[email protected]> wrote:
>
> > Hi all,
>
> > I am new to cakephp, started working on the blog tutorials,
>
> > Missing Database Table
> > Error: Database table posts for model Post was not found.
>
> > have got this error, checked the naming conventions but still no
> > solution
> > help me on this
>
> > thanks all
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to