Re: Problem in generateList();
On Tue, Jun 9, 2009 at 12:19 PM, Rob Conner wrote: > > Wow, generateList is an old function. where did you find that example > code? > > Perhaps just try $this->Book->Author->find('list'); I assumed the OP was referring to the TreeBehavior method. I'd forgotten about that old one from Model class. Yes, it's probably that. One of the things I found quite frustrating when first starting with Cake was wading through an awful lot of outdated information. Can't be helped, of course, but it was a source of confusion. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Problem in generateList();
by old, I mean deprecated, and I don't think it exists in newer versions of cake. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Problem in generateList();
Wow, generateList is an old function. where did you find that example code? Perhaps just try $this->Book->Author->find('list'); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Problem in generateList();
It's generateTreeList(). Also, ensure that Author has $actsAs = array('Tree') On Tue, Jun 9, 2009 at 5:39 AM, engfaruque wrote: > > > > > $authors = $this->Book->Author->generateList(); > > For the above code following error occur > > 1064: You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server version for the right syntax to use near > 'generateList' at line 1 > > > How i solve it. I am new in cake php > -- > View this message in context: > http://www.nabble.com/Problem-in-generateList%28%29--tp23939577p23939577.html > Sent from the CakePHP mailing list archive at Nabble.com. > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---