Re: Production and Development Environment

2013-12-03 Thread Reuben Helms
*To:* cake-php@googlegroups.com *Subject:* Re: Production and Development Environment On Friday, 29 November 2013 05:45:50 UTC+1, advantage+ wrote: Hmm sounds like the exact thing I said……..and if you do Beforefilter::parent () in the controller what was the point of asking

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 Advantage+
To: cake-php@googlegroups.com Subject: Re: Production and Development Environment 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

RE: Production and Development Environment

2013-12-02 Thread Advantage+
@googlegroups.com] On Behalf Of AD7six Sent: Saturday, November 30, 2013 11:08 AM To: cake-php@googlegroups.com Subject: Re: Production and Development Environment On Friday, 29 November 2013 05:45:50 UTC+1, advantage+ wrote: Hmm sounds like the exact thing I saidand if you do Beforefilter::parent

Re: Production and Development Environment

2013-11-30 Thread AD7six
On Friday, 29 November 2013 05:45:50 UTC+1, advantage+ wrote: Hmm sounds like the exact thing I said……..and if you do Beforefilter::parent () in the controller what was the point of asking if there is an easy way to no go thur every controller! And that would not solve the problem

Re: Production and Development Environment

2013-11-29 Thread Reuben Helms
You don't have to go through every controller. Just on the one controller, the AppController, for the default deny, and the code that will skip that deny if you have a config that suggests you're in a development environment. The only other Controller to touch will be the controller that looks

RE: Production and Development Environment

2013-11-29 Thread Advantage+
@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Reuben Helms Sent: Friday, November 29, 2013 11:52 AM To: cake-php@googlegroups.com Subject: Re: Production and Development Environment You don't have to go through every controller. Just on the one controller, the AppController

RE: Production and Development Environment

2013-11-28 Thread Advantage+
...@movepixels.com | 709.800.0852 From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Reuben Sent: Thursday, November 28, 2013 12:53 AM To: cake-php@googlegroups.com Subject: Re: Production and Development Environment I'm assuming that's some sort of Ajax API that you're doing

Re: Production and Development Environment

2013-11-28 Thread Simon Males
*To:* cake-php@googlegroups.com *Subject:* Re: Production and Development Environment I'm assuming that's some sort of Ajax API that you're doing? You could make your Javascript aware that it's in a development environment, and pass the Authorization token, as per http://coderseye.com/2007

Re: Production and Development Environment

2013-11-28 Thread Reuben Helms
@googlegroups.com *Subject:* Re: Production and Development Environment I'm assuming that's some sort of Ajax API that you're doing? You could make your Javascript aware that it's in a development environment, and pass the Authorization token, as per http://coderseye.com/2007/how-to-do-http-basic

RE: Production and Development Environment

2013-11-28 Thread Advantage+
Hmm sounds like the exact thing I saidand if you do Beforefilter::parent () in the controller what was the point of asking if there is an easy way to no go thur every controller! And that would not solve the problem either and if you took a few seconds to read the question Its clearly

Re: Production and Development Environment

2013-11-27 Thread Reuben
I'm assuming that's some sort of Ajax API that you're doing? You could make your Javascript aware that it's in a development environment, and pass the Authorization token, as per http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html. If you're using jQuery.ajax, you can pass the

RE: Production and Development Environment

2013-11-27 Thread Advantage+
Of Reuben Sent: Thursday, November 28, 2013 12:53 AM To: cake-php@googlegroups.com Subject: Re: Production and Development Environment I'm assuming that's some sort of Ajax API that you're doing? You could make your Javascript aware that it's in a development environment, and pass the Authorization