Re: Reserved words in CakePHP?

2012-09-29 Thread lowpass
On Fri, Sep 28, 2012 at 11:55 AM, Brad Giessing itsmer...@gmail.com wrote: I created a function called list() in a controller and it freaked out. I guess it doesn't like that, either. That's a PHP thing. -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter

Re: Reserved words in CakePHP?

2012-09-29 Thread Jamie
AM UTC-5, John Andersen wrote: Hi all, Is there reserved words in CakePHP, which I can't use when naming my models? For example collection and tag. Enjoy, John, Latvia -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP

Re: Reserved words in CakePHP?

2012-09-28 Thread Brad Giessing
I created a function called list() in a controller and it freaked out. I guess it doesn't like that, either. On Wednesday, April 15, 2009 5:22:14 AM UTC-5, John Andersen wrote: Hi all, Is there reserved words in CakePHP, which I can't use when naming my models? For example collection

Re: Reserved words in CakePHP?

2012-09-28 Thread Jeremy Burns | Class Outfit
15, 2009 5:22:14 AM UTC-5, John Andersen wrote: Hi all, Is there reserved words in CakePHP, which I can't use when naming my models? For example collection and tag. Enjoy, John, Latvia -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http

Re: Reserved words in CakePHP?

2009-04-19 Thread Dr. Loboto
If you replace Cake pages controller you _should_ use Page/Pages :) On Apr 16, 8:52 pm, Grzegorz Pawlik grzegorzpaw...@gmail.com wrote: Additionally You rather shouldn't name Your model/controller like Object/Objects and Page/Pages ;) On Apr 16, 12:52 pm, Mark (Germany)

Re: Reserved words in CakePHP?

2009-04-17 Thread John Andersen
Class names could be defined not to conflict with possible object names, for example by always having class names prefixed with a T, TAppController, TController, TObject etc. Just a suggestion :) John On Apr 16, 4:52 pm, Grzegorz Pawlik grzegorzpaw...@gmail.com wrote: Additionally You rather

Re: Reserved words in CakePHP?

2009-04-16 Thread Mark (Germany)
yeah i once proposed to change components into $this-FileComponent-foo() etc with Component attached to prevent this from happening but they did not care about that much in the core team at that point in time :) PS: same with helpers (conflicts between vars from controller): $poll (content

Re: Reserved words in CakePHP?

2009-04-16 Thread Grzegorz Pawlik
Additionally You rather shouldn't name Your model/controller like Object/Objects and Page/Pages ;) On Apr 16, 12:52 pm, Mark (Germany) dereurom...@googlemail.com wrote: yeah i once proposed to change components into $this-FileComponent-foo() etc with Component attached to prevent this from

Reserved words in CakePHP?

2009-04-15 Thread John Andersen
Hi all, Is there reserved words in CakePHP, which I can't use when naming my models? For example collection and tag. Enjoy, John, Latvia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post

Re: Reserved words in CakePHP?

2009-04-15 Thread Dardo Sordi Bogado
Is there reserved words in CakePHP, which I can't use when naming my models? http://api.cakephp.org/classes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake

Re: Reserved words in CakePHP?

2009-04-15 Thread Teh Treag
In addition to the classes - http://api.cakephp.org/classes, there are also the global constants and functions - http://book.cakephp.org/view/120/Global-Constants-and-Functions -teh On Apr 15, 5:22 am, John Andersen j.andersen...@gmail.com wrote: Hi all, Is there reserved words in CakePHP

Re: Reserved words in CakePHP?

2009-04-15 Thread John Andersen
Thanks Dardo and Teh, but it turned out to be a conflict between all my models, when I loaded them all in an installations controller :) Solved by loading the models only by request (ClassRegistry). Enjoy, John On Apr 15, 5:14 pm, Teh Treag tehtr...@gmail.com wrote: In addition to the

Re: Reserved words in CakePHP?

2009-04-15 Thread Dr. Loboto
There can be also conflict between models and components names (not classnames). On Apr 16, 1:45 am, John Andersen j.andersen...@gmail.com wrote: Thanks Dardo and Teh, but it turned out to be a conflict between all my models, when I loaded them all in an installations controller :) Solved by

Re: Reserved words in CakePHP?

2009-04-15 Thread John Andersen
Thanks Dr. Loboto, That may be, but not in my case, as I don't use any components together with my installations controller, and each model, loaded by request, does not have any conflict with CakePHP or other parts, so to sum it up, I am happy with that :) Enjoy, John On Apr 16, 5:36 am, Dr.