Exemplo n.º 1
0
 public function __construct()
 {
     $registry = Registry::getInstance();
     $this->create();
     $this->dbConn = $registry->get('dbi');
     $this->cache = $registry->get('cache');
     $this->index = $registry->get('index');
 }
Exemplo n.º 2
0
 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']);
 }
Exemplo n.º 3
0
 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();
     }
 }