php - What is the difference between a public = $default and public = $test? -
i'm trying learn new going through cakephp's tutorials , in section link database.php
mamp/sql, asks change information in array calls public $default
. there public $test
array in same file.
what public $test
array for? know can run page linking $default
$test
serve purpose?
ie:
class database_config { public $default = array( 'datasource' => 'database/mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'admin', 'password' => 'admin', 'database' => 'blog_tutorial', 'prefix' => '', //'encoding' => 'utf8', ); public $test = array( 'datasource' => 'database/mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'admin', 'password' => 'admin', 'database' => 'blog_tutorial', 'prefix' => '', //'encoding' => 'utf8', ); }
just curious, thanks!
Comments
Post a Comment