Home » Interview Question » Cake Php » How we get the connection variable values from database config file

How we get the connection variable values from database config file

How we get the connection variable values from database config file

This is my cakephp database config file(app/config/database.php).and we have describe how to get database configration veriable from config file.To accessing these veriable we are using cakephp ConnectionManager class.

ConnectionManager : ConnectionManager is a cakephp class Manages and loads instances of a Connection.Provides an interface to loading and creating connection objects. Acts as a registry for the connections defined in app/config/database.php.

, , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">