Consider re-factoring your fromData() into a component

Tarique


On Tue, Jan 27, 2009 at 5:55 PM, WebbedIT <p...@webbedit.co.uk> wrote:
>
> In most of my controllers I have a __formData() function which creates
> any arrays for select lists, radio buttons, check-boxes etc.  I can
> then call this from the add() and edit() actions and save some lines
> of code etc.

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

Reply via email to