On Wed, Jun 24, 2009 at 4:46 AM, Andreas Derksen<[email protected]> wrote:
>
> Hi!
>
> In my view I have something like this:
>
> <?php echo $form->create('Model');?>
> <?php echo $form->input('tinyint_field'); ?>
> <?php echo $form->end('Save'); ?>
>
> Now I want to have it be checked when the corresponding field in the
> database has the value 1.
> How can I do this?
FormHelper should already be taking care of that. Are you certain that
it's not doing so? Is the data in the correct format?
Also, use $form->input('ModelName.tinyint_field')
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---