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
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
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
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::
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
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'
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
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
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
> 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
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
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
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
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
14 matches
Mail list logo