I would have to see your code to understand what your are doing
On Tuesday, September 30, 2014 3:17:26 PM UTC+2, Radharadhya Dasa wrote:
>
> Thank you. Silly things sometimes hard to find...
>
> echo $this->Form->autocomplete('name');
>
> Now I do not have any error message but no code is generated the above
> code do not echoes anyting. I am pretty sure that I missed something simple.
>
> 1. I created /src/View/Widget/Autocomplete.php
> 2. Added the $heépers property to AppController.php
> 3. Used echo $this->Form->autocomplete
>
> What is missing? Why there is no error message?
>
> rrd
>
> 2014-09-30 14:41 GMT+02:00 José Lorenzo <[email protected]>:
>
>> You are probably missing a "use *Cake\View\Form\ContextInterface*" at
>> the top of your file
>>
>>
>> On Tuesday, September 30, 2014 2:33:24 PM UTC+2, Radharadhya Dasa wrote:
>>>
>>> Hi,
>>>
>>> I am trying to make an autocomplete input work on Cake 3.0
>>>
>>> The current 3.0 cookbook gives a code example here :
>>> http://book.cakephp.org/3.0/en/core-libraries/helpers/form.html
>>>
>>> If I try it I get an error message:
>>> *Fatal error*: Declaration of App\View\Widget\Autocomplete::render()
>>> must be compatible with Cake\View\Widget\WidgetInterface::render(array
>>> $data, Cake\View\Form\ContextInterface $context) in
>>> */home/rrd/public_html/sanga/src/View/Widget/Autocomplete.php* on line
>>>
>>> *6*If I change my render function to
>>>
>>> *public function render(array $data, Cake\View\Form\ContextInterface
>>> $context) {*
>>> Still I get the same error message.
>>>
>>> Any idea how to solve this?
>>>
>>> rrd
>>>
>> --
>> 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.
>>
>
>
--
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.