Thanks for that, thats a nice and simple trick.
But I'm looking for a functional check box.

On Sep 8, 11:16 pm, FrederickD <[email protected]> wrote:
> If you don't want your index to be editable, yet display something
> more intelligible than a '1' or '0' for a Boolean field, you can use
> this:
>
> <td class="active"><?php echo $technician['Technician']['active'] ?
> 'Yes' : 'No'; ?></td>
>
> The field 'active' is a Boolean and this is a simple way to show 'Yes'
> or 'No' on the index view. It is not editable, but much better for
> reading.
>
> On Sep 8, 3:49 am, WebbedIT <[email protected]> wrote:
>
> > In your edit view you will be using the form helper which knows to
> > convert tinyint(1) or bool field to a checkbox.
>
> > If you are looking to add multiple checkboxes to your index view (so
> > you can check multiple records) you need to edit your index view to
> > include a form which would use the form helper to echo out your delete
> > fields checkboxes.
>
> > Don't expect baked views to do this for you as this sort of feature is
> > not included in a basic baked index.
>
>
--~--~---------~--~----~------------~-------~--~----~
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