Re: CakeAdvent: Hacking the CakePHP Dispatch System

2013-12-03 Thread Reuben
Thanks for the heads up, Jose. I'm always keen to read blogs of CakePHP core developers and contributors. Regards Reuben Helms On Wednesday, 4 December 2013 02:54:08 UTC+10, Jose Diaz-Gonzalez wrote: > > Hi all! > > I'm Jose Diaz-Gonzalez (@savant on twitter and > ir

Re: Strange console behavior

2013-12-03 Thread Ed Propsner
I'm not quite too sure what to make of it. 'debug(Debugger::trace())' triggered the error that I could not re-declare class debugger. I removed the Debugger::trace() but the error remained. Fairly confident that I hadn't re-declared the class anywhere else I commented out 'Debugkit.Toolbar' and eve

CakeAdvent: Hacking the CakePHP Dispatch System

2013-12-03 Thread Jose Diaz-Gonzalez
Hi all! I'm Jose Diaz-Gonzalez (@savant on twitter and irc, josegonzalez on github ). I'm a core developer on the CakePHP framework and a long-time open source contributor. I am not to be confused with Jose Lorenzo (jose_zap), as

Re: Posting to the top of the tree using the Tree Behavior

2013-12-03 Thread Justin Thomas
Of course, sorting it DESC makes perfect sense. Just needed someone to get me out of the box. Now I just need to reorder the data that's already there so when I do a DESC sort it stays the way it is now (only new records will be put at the top of the tree). I think that's easily done. Thanks

RE: Production and Development Environment

2013-12-03 Thread Advantage+
Sorry no, in development I still need to authenticate hence the allowance of api calls. This is the problem. Everything now is in a password protected folder. So no access. I need a way to allow API yet still have it in production so controller kicsksin and denys all access but login. Da

Re: Posting to the top of the tree using the Tree Behavior

2013-12-03 Thread AD7six
On Monday, 2 December 2013 19:22:14 UTC+1, Justin Thomas wrote: > > I'm using the Tree Behavior in one of my models. When a new record is > added by default it post the new record at the bottom of the tree. What I > need it to do is post the new record at the top of the tree. > That will r

Re: Strange console behavior

2013-12-03 Thread AD7six
Sounds like an early fatal error - if you put `debug(Debugger::trace())` in your `default.ctp` - it may give you more insight as to how/why it's doing that. AD On Tuesday, 3 December 2013 06:02:46 UTC+1, CrotchFrog wrote: > > Using Cake 2.4.3 on Ubuntu server 12.04 LTS > > A new unexpected beha

Re: Production and Development Environment

2013-12-03 Thread Domingos Coelho
I do this to config database for each server, production or development, i put this code in database.php: switch($_SERVER['HTTP_HOST']) { case 'localhost': case 'development': $this->default = $this->development; // $development has the configuration for the development database

Re: Production and Development Environment

2013-12-03 Thread Reuben Helms
Trying one more time... The requirement is that in production, you need to authenticate to get access to the API, and that in development, no authentication is required. The assumption is that the authentication will be session based, with a form based login action. There has been mention of a .

Posting to the top of the tree using the Tree Behavior

2013-12-03 Thread Justin Thomas
I'm using the Tree Behavior in one of my models. When a new record is added by default it post the new record at the bottom of the tree. What I need it to do is post the new record at the top of the tree. I've looked at the documentation and I don't see anything to change that default behavi