コード例 #1
0
 public function start()
 {
     $this->initAutoload();
     Database::setInstance(Config::DB_INSTANCE_NAME, Config::DB_DRIVER, Config::DB_USERNAME, Config::DB_PASSWORD, Config::DB_NAME, Config::DB_HOST);
     $this->_frontController = FrontController::getInstance();
     $this->_frontController->dispatch();
 }
コード例 #2
0
 public function __construct($controllerName, array $requestParams = [])
 {
     $this->controllerName = $controllerName;
     $this->requestParams = $requestParams;
     $this->databaseInstance = Database::getInstance(Config::DB_INSTANCE_NAME);
 }