Not sure what you mean with " It isn't returning a list at all." Can you explain?
On Friday, July 11, 2014 9:47:27 AM UTC+2, Michael Houghton wrote:
-- On Friday, July 11, 2014 9:47:27 AM UTC+2, Michael Houghton wrote:
I am using the 3.0 Tree Behavior.
I have the following from the docs:
$pages = $this->Pages->find('treeList');
http://book.cakephp.org/3.0/en/core-libraries/behaviors/ tree.html
This just doesn't feel right. It isn't returning a list at all. Should I be doing something else, like:
$pages = $this->Pages->find('treeList')->all();
It just feels like I am missing something here.
When I put my $pages variable into my "'options' => $pages" for my form select, I get the following error:
Error: Function name must be a string
File /home/michael/public_html/bettornet/vendor/cakephp/ cakephp/src/Collection/ Iterator/TreePrinter.php
Line: 77
Any help with this would be appreciated.
Thanks in advance.
Michael
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