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:
-- On Tuesday, September 30, 2014 3:17:26 PM UTC+2, Radharadhya Dasa wrote:
What is missing? Why there is no error message?3. Used echo $this->Form->autocomplete2. Added the $heépers property to AppController.php1. I created /src/View/Widget/Autocomplete.Thank you. Silly things sometimes hard to find...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.
echo $this->Form->autocomplete('name'); php
rrd2014-09-30 14:41 GMT+02:00 José Lorenzo <jose.zap@gmail.com>:You are probably missing a "useCake\View\Form\ContextInterfac
" at the top of your filee
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\WidgetInterfa ce::render(array $data, Cake\View\Form\ContextInterfac e $context) in /home/rrd/public_html/sanga/sr c/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 cake-php+unsubscribe@googlegroups.com .
To post to this group, send email to cake-php@googlegroups.com.
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 cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment