Ausgezeichnet! (My father is from München and has the bumper
sticker... I bin a Bayer! Host mi?)

Would you mind sharing that helper? Vielen dank.

On Oct 10, 4:56 am, "euromark (munich)" <[email protected]>
wrote:
> i even use a helper funtion
>
> echo $common->yesNo($val)
>
> which results in one of 2 icons: green check mark or a red cross
> (even more pleasing visual appearance)
>
> On 9 Okt., 15:00, FrederickD <[email protected]> wrote:
>
> > I may not understand completely what you are trying to do. I've kept
> > my boolean elements at tinyint and use something like this with the
> > views for presentation:
>
> > <td class="confirmed"><?php echo $user['User']['confirmed']  ? 'Yes' :
> > 'No'; ?></td>
>
> > That give a more pleasing visual appearance than a '1' or '0', yet
> > maintains the database value as boolean.
>
> > There is something similar that can be done in Javascript for ExtJS
> > grids and forms.
>
> > Does this help?
>
> > On Oct 8, 6:36 pm, Xhaphir <[email protected]> wrote:
>
> > > Hi,
>
> > > i have a small problem in cakePHP. I saved a lot of booleans and
> > > integers in a mySQL Database and
> > > cakePHP is converting my boolean values nicely to a tinyint. But not
> > > back.
>
> > > In most cases this is not a problem but I would like to iterate over
> > > all values and convert all booleans to "yes"/"no".
> > > In this case I am unable to determine if a value is a boolean or an
> > > integer.
>
> > > Maybe I'm just don't see the solution..
>
> > > Thanks for your help,
> > > Helmut
>
>
--~--~---------~--~----~------------~-------~--~----~
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