I have found a way here in the google group (don't memorize the exact source though):
<?php echo $form->input('player.vorname', array('div' => false, 'label' => false));?> The options in the secon parameter prevent the input function to automatically wrap a div tag and the column name as label around the input tag itsself. So you can for example use: <?php __('any_label_you_like', true);?> <?php echo $form->input('player.vorname', array('div' => false, 'label' => false));?> -------------------------------------------------------------------------- Another issue: Do you know how to change the error message on a failed validation in a view? If I have for example VALID_NOT_EMPTY defined for my title column in the Post model, and I leave the input field for title empty in the add view a standard message is echoed. How can I alter the error message in cake 1.2? With cake 1.1 you could use the HtmlHelper and its "tagErrorMsg" function for that, but how to do this in cake 1.2? I have tried "error" function from FormHelper but it did not work. On Jul 20, 12:46 pm, oleonav <[EMAIL PROTECTED]> wrote: > If we could use something like $form->input('TransTitle.fra.content') > that would be nice. Using this produces a form input but the value is > lost. > > We can write some logic (like I have shown in my recent posts about > this topic) to loop through the TransTitle & TransContent array, but > this seems not to be the most elegant solution. Not very 'Cake' like. > Also in the controller function we have to parse things back again. > > On Jul 19, 9:37 am, zwobot <[EMAIL PROTECTED]> wrote: > > > Good question oleonav. I wondered how this works too. > > In general I want to use any label for an input field, seems like > > there is missing a parameter for an input label and you cannot use the > > second 'options' parameter to define a label as it seems. > > > On Jul 17, 4:29 am, oleonav <[EMAIL PROTECTED]> wrote: > > > > Presenting a formtag for [Article][active] is simple: > > > $form->input('Article.active'). How to output a tag for the French title > > > is > > > > a mystery to me. > > > $form->input('TransTitle.??????? ') ?? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---