[Snippet] CakePHP: Accessing database.php values

I needed to quickly debug the current database variables currently used by CakePHP.

$fields = get_class_vars('DATABASE_CONFIG')

You can get loads of useful info from here

 

MCL Medics Log  Users

Author: Kieran Barnes

Kieran is a PHP developer with 15 years commercial experience. Specialist in WordPress, CakePHP, CubeCart and all things PHP.

Leave a Reply

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