3 days ago and it still hasn't gone through...
Thanks
Jimmy Sole
-----Original Message-----
From: Wil Moore III [mailto:wil.moore@wilmoore.com]
Sent: Tuesday, December 14, 2010 11:35 AM
To: fw-mvc@lists.zend.com
Subject: [fw-mvc] Re: Simple way of reusing database configuration settings
in Zend_Config
Nathan Garlington wrote:
>
> As you can see, all of the adapter config params are the same EXCEPT
> the database names. Is there a simple way to reuse config values and
> just substitute the one I need to change?
>
If you are utilizing a build tool such as phing or ant, there is a task
which will allow you to use tags in your configuration file which gets
replaced with the actual values. You want to do this anyway because it is
not a good idea to store username/password info in your source repo.
Your config would end up looking something like this:
resources.trailersDb.params.username = #USER_NAME#
resources.trailersDb.params.password =
#NOW_THE_PASSWORD_IS_REALLY_A_SECRET#
-----
--
Wil Moore III
Why is Bottom-posting better than Top-posting:
http://www.caliburn.nl/topposting.html
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Simple-way-of-reusing-d
atabase-configuration-settings-in-Zend-Config-tp3084030p3087459.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论