I have multiple functions in my models that gather info needed for specific
views obviously...
(Question is all function in the same model )

My question is in some cases i need little info  say function userinfo ();
returns name, email
then i need more user info function userDetails (); returns city, state,zip,
country...so on
Its more complex than that as there are contain finds on numerous models,
but to keep it simple
 
Then later i need all of this info at once, rather than write a completely
separate function can i write 
 
allInfo ()
{
$someInfo = $this->userinfo();
$moreInfo = $this->userDetails ();
 
$user = Set::merge($someInfo, $moreInfo);
}

Rather then have functions repeat actions in other functions.

Dave 


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