예제 #1
0
파일: Application.php 프로젝트: serby/Atrox
 protected function __construct()
 {
     parent::__construct();
     // testdatabase - This should be defined in you hosts file
     $this->setLogPath(realpath("../Log"));
     $this->setConnection(new Atrox_Core_Data_MySql_Connection("localhost", "username", "password", "database"));
     $this->getConnection()->connect();
 }
예제 #2
0
파일: Application.php 프로젝트: serby/Atrox
 protected function __construct()
 {
     parent::__construct();
     // testdatabase - This should be defined in you hosts file
     $validConnectionString = "host=testdatabase port=5432 dbname=AtroxTest user=WebUser password=test";
     $this->setLogPath(realpath("../Log"));
     $this->setConnection(new Atrox_Core_Data_PostgreSql_Connection($validConnectionString));
     $this->getConnection()->connect();
 }