*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
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
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
@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
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
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
@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
...@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
*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
@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
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
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
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
13 matches
Mail list logo