I'm trying to understand what you want to get with "class"=>
"{mask:'9', type:'repeat'}" ?
class name in HTML should be alfanumerical (strting from a letter), so
I don't see a point in this statement (maybe I'm wront ;-) ).
Anyhow cakePHP escapes attributes with h() function, try to add
"escape" => false to options:
text('Controller.input', array("class" =>
"{mask:'9', type:'repeat'}", "escape" => false )); ?>
But again, I don't think that is good way of using the "class"
parameter, wchich should be used to define classes of form element in
(x)HTML.
Best Regards,
Maciej Gołaszewski
On Nov 18, 1:14 pm, Caio Tarifa wrote:
> Hi.
>
> CakePHP is converting my quotes for ASCII decimal. Look the example:
>
> Input:
> text('Controller.input', array("class" =>
> "{mask:'9', type:'repeat'}")); ?>
>
> Output:
> class="{mask:'9', type:'repeat'}" value=""
> id="ControllerInput" />
>
> Please, help me to solve my problem?
>
> Regards,
> Caio Tarifa
--
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-...@googlegroups.com.
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=.