|
It would mainly be for the view. in the controller i would call the
requestAction and assign the output to a view variable using set(): $this->set('someBlock',$this->requestAction('Controllers/_Method',array('foo'=>'bar'))); // i think this is right. correct me if im wrong or (refering to the other thread "Simple question about $this->set") you can do it like this: $someBlock = $this->requestAction('Controllers/_Method',array('foo'=>'bar')); echo $someBlock; // refering to other thread in groups $this->set('someBlock',$someBlock); anyone, correct me if im wrong. Brian French [EMAIL PROTECTED] wrote: bwaters wrote:It seems that the consensus is to put the blocks into elements and if they have data use a requestAction inside the element that returns a data array containing whatever information you need. There are lots of other ways to skin this cat, depending on your situation and how many blocks you are talking about. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~--- |
