You have these options:
1. put the common function in a component.
2. put  the common function in appController.
3. use requestAction() - (not good practise)
4. combine all the actions of both controllers into a single
controller
5. put the function in a model (if applicable) and have both
controllers access the model.
6. put the common function in a file and include it in both
controllers (not good practise).

Option #1 is recommended if it is only a few controllers sharing the
function. If all or most controllers need the function, option #2 is
best. The other options are not usually recommended.
--~--~---------~--~----~------------~-------~--~----~
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