Tuesday, January 27, 2009

Re: What is the advised way to call a function from another controller?

Looks like you need to re factor a bit more

Thumb rules -

#1 sharing controller code - components
#2 sharing model code - behaviour
#3 sharing view code - elements

HTH

Tarique


On Tue, Jan 27, 2009 at 6:37 PM, WebbedIT <paul@webbedit.co.uk> wrote:
>
> Are you sure a component would be correct for this as again the
> CookBook states "To access/use a model in a component is not generally
> recommended" and my __formData() functions are made to access models:
>
--
=============================================================
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
=============================================================

--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: