You can paas the name of the class in the attributes array like

<?php echo $html->input('Post/title' , array('class' => 'test'))?>

Here second argument is the array for HTML elements. You can pass your
html attributes including class name through this array.

On Feb 22, 7:15 am, vj <[EMAIL PROTECTED]> wrote:
> Hi
>
> I am a newbie to Cake. I am developing an application in which I want
> to use the Zapatec Ajax Framework with Cake.
>
> What I want to know is how does one apply CSS classes to form elements
> created by Cake. For example, the syntax for creating an input box is:
>
> <?php echo $html->input('Post/title')?>
>
> How does one apply a CSS class to this input box?
>
> Thanks
> Vinayak
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to