Friday, December 25, 2009

Re: How to use get_cfg_var() in a cakePHP app ?

So, we placed the app in a Sandbox server with the DB URL pointing to
the amazon cloud. Now, the client wants to move it to a production
server, where the URL will be different. Hence, they are asking us to
use
$server = get_cfg_var('mysql.default_host')


On Dec 25, 3:55 am, "Dr. Loboto" <drlob...@gmail.com> wrote:
> If it is about using default host only, try without it at all.
>
> On Dec 25, 2:35 am, Ashu <mehta.apu...@gmail.com> wrote:
>
>
>
> > I have a cakePHP app with my DB servers configured in the app/config/
> > database.php file. However, I need to use the get_cfg_var
> > ('mysql.default_host') to get the host name because the client does
> > not want the name hardcoded. I would appreciate a quick response
> > regarding where the changes need to be made.
>
> > Thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate