This is my controller code
class PostsController extends AppController
{
        var $name = 'Posts';

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

This is my model code
class Post extends AppModel
{
    var $name = 'Post';
}

I already tried it with a seperate function in model via '$ret =
$this->query("SELECT * FROM posts WHERE id");' and then calling this
function within the controller. I still see that the query is
performed, three records are returned, but no data.

Regards
Moob


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to