RE: Production and Development Environment

2013-12-03 Thread Advantage+
PM 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 authenti

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
egroups.com [mailto:cake-php@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

RE: Production and Development Environment

2013-12-02 Thread Advantage+
ke-php@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::

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 p

RE: Production and Development Environment

2013-11-29 Thread Advantage+
vepixels.com> d...@movepixels.com | 709.800.0852 From: cake-php@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'

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 af

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 sta

Re: Production and Development Environment

2013-11-28 Thread Reuben Helms
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 a

Re: Production and Development Environment

2013-11-28 Thread Simon Males
> 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? > > > > You could

RE: Production and Development Environment

2013-11-28 Thread Advantage+
s.com> d...@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

RE: Production and Development Environment

2013-11-27 Thread Advantage+
alf 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

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 user

Production and Development Environment

2013-11-27 Thread Advantage+
Building a site on client's server and password protected but now adding in API functionality and the htaccess is blocking responses back from the API calls since they can't reach the site. Is there a simply way to define production / development to allow access without password protecting the