Automagic on add()
I've developed a method for generating a $data array for a given model
so that I can prefill various fields on an add() form. My users will
be using the add form often and I would like default values in there
based on $data being pulled from a Settings model. I've tested and
$data[Model][parameter][value] works when <input ... value=$data[Model]
[parameter][value]> but I'm looking for a more automatic method
similar to populating an edit form.
Thanks,
Brian
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home