well, thats how its not supposed to be done
default values should not be hardcoded in the form helper inputs.
if you post the form and some errors are to be corrected by the user
the same hardcoded defaults will populate the fields deleting the
previous made changes. and thats not ok!

use the controller to pass defaults


On 13 Jul., 15:58, Azril Nazli <[email protected]> wrote:
> Might be useful for somebody, here's the sample
>
> http://azrilnazli.blogspot.com/2010/07/cakephp-13-form-samples-with-d...
>
> Pastebin :http://pastebin.com/MAekWJCt
>
> in the controller just debug the inconing value, enjoy
>
> Azril Nazli
> Putrajaya, Malaysia

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 [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