hi there,

ok I have to say first I'm no guru :)

but

Olivier you say

> The default constructor just allow the index() method to use findAll().

and if i understand correctly setting up a test method like this :

function test() {

                $data = $this->News->findAll();
                $this->set('data',$data);

        }

and a test view like this :

 pr($data);


would result in an error, but it does not

I don't see why the findall method of the model would only be accessble
in ceratin function

Or am i not understanding what you're assuming ?

I also tried test with an ajax call from my index view and my div get
updated fine with the array i get from the findAll model function

I know this is no solution for now but I thought what u wrote about
findAll being only accessible by index was a little confusing.

my 2 cents

thomas


--~--~---------~--~----~------------~-------~--~----~
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