~line 406 of html.php (html helper, cake 1.1)

        if (!isset($htmlAttributes['value'])) {
            $htmlAttributes['value'] = $this->tagValue($fieldName);
        }


looks like if you do the following, you'll avoid the htmlentities:
echo $html->input($modelName."/".
>
> $key, array("class"=>"text","value"=>"HTML HERE"), true);



On 6/26/07, mac joost <[EMAIL PROTECTED]> wrote:
>
>
> Thanks for the reply.
>
> I'm mainly using Cake 1.1. I need to change my templates to use Cake
> 1.2 and will maybe do this later this week.
>
> As for the code, it's quite straight forward:
> I have a classifieds_controller which adds a classified add to the
> database:
> /* part of function save() */
> if(isset($this->params['data'])) {
>         if($this->Classified->validates($this->params['data'])) {
>                 uses('sanitize');
>                 $Sanitize = & new Sanitize();
>                 $Sanitize->cleanArray($this->data['Classified']);
>                 $this->Classified->save($this->data);
>         }
> }
>
> For my form (I use my manager plugin) the code is just:
> echo $html->input($modelName."/".$key, array("class"=>"text"), true);
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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