contentTag is deprecated in 1.1 and they've taken it out of 1.2
altogether.  Just stick straight HTML in your helper.  This is what my
modelErrors function looks like:

function modelErrors()
{
        $html =& new HtmlHelper;
        $models = func_get_args();
        $list = '';
        foreach ($models as $model)
        {
                if ( isset($this->validationErrors[$model]) )
                {
                        foreach ( $this->validationErrors[$model] as $field => 
$errors )
                        {
                                foreach ( $errors as $error )
                                {
                                        $list .= '<li>' . $error . '</li>' . NL;
                                }
                        }
                }
        }

        $output = '';
        if ( !empty($list) )
        {
                $output = '
                        <div id="error-report">
                                <h4>' . __('The following errors need to be 
corrected:', true) .
'</h4>
                                <ul>
                                ' . $list . '
                                </ul>
                        </div>
                        ';
        }

        return $output;
}


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