If the code is meant to transform or in some way CRUD or manipulate data and it needs to be accessible from multiple controllers, I would push it down to the model that it is associated with. then in your code you can call the function as $this->SomeModel->myFunction(); Pushing the code to the model will simplify using it from any Controller, and it simplifies writing test for the function as well.
MVC -- weight the code in the same order heavy (M)odel, medium (V)iew and light on the (C)ontroller. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en