The helper is included in the FormHelper super class and I also added it in 
the LanguageHelper. Still got an error with the useTag function but this 
time it is the hidden method in the FormHelper. 

> return $this->Html->useTag('hidden', $options['name'], 
> array_diff_key($options, array('name' => null)));

Any suggestions? 

Am Montag, 9. Juni 2014 07:59:06 UTC+2 schrieb Dakota:
>
> You need to ensure that you have public $helpers = array('Html'); in your 
> helper class.
>
> On Friday, 30 May 2014 14:58:55 UTC+2, Sven Mäurer wrote:
>>
>> I want to extend the FormHelper and used this part of a method's code to 
>> be called in the view.
>> $out = parent::input($fieldName, $opts);
>> return parent::output($out);
>>
>> Error: Call to a member function useTag() on a non-object 
>> File: ...lib/Cake/View/Helper/FormHelper.php 
>> Line: 861
>>
>> the label method 
>> return $this->Html->useTag('label', $labelFor, $options, $text);
>>
>> cakephp version 2.5.1
>>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to