As the_woodsman said, requestAction does not return all the set()
values.  But it does return the returned value.  So if your index
action was

function index(){
        $locations = $this->Location->findAll();
        $this->set('locations', $locations);
        return $locations;
}

then you would get what you expect from the requestAction.

But as mentioned, if all you want is a findAll, instance the model
locally and do that.  requestAction should only be used when you
really need the result of a controller action, because the controller
is doing a substantial amount of work that is not feasible to relocate
into a model, app_controller, or a component.


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to