コード例 #1
0
ファイル: ModelBase.php プロジェクト: mkorkmaz/selami
 public function __construct()
 {
     $registry = Registry::getInstance();
     $this->create();
     $this->dbConn = $registry->get('dbi');
     $this->cache = $registry->get('cache');
     $this->index = $registry->get('index');
 }
コード例 #2
0
ファイル: App.php プロジェクト: mkorkmaz/selami
 public function __construct()
 {
     $registry = Registry::getInstance();
     $this->config = array_merge($this->config, $registry->get('config'));
     $registry->set('config', $this->config);
     $this->request = $registry->get('request');
     $this->session = $registry->get('session');
     $router = new Router($registry->get('routes'), $this->config['default_return_type'], $this->request->getMethod(), $this->request->getUri()->getPath(), $this->config['subfolder']);
     $this->route = $router->getRoute();
     ini_set("default_charset", "utf-8");
     ini_set('date.timezone', $this->config['app']['timezone']);
 }
コード例 #3
0
ファイル: ControllerBase.php プロジェクト: mkorkmaz/selami
 public function __construct($args)
 {
     $registry = Registry::getInstance();
     $this->config = $registry->get('config');
     $this->request = $registry->get('request');
     $this->session = $registry->get('session');
     $this->cache = $registry->get('cache');
     $this->args = $args;
     if (method_exists($this, '__applicationGlobal')) {
         $this->__applicationGlobal();
     }
     if (method_exists($this, '__controllerGlobal')) {
         $this->__controllerGlobal();
     }
 }