Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     if ($this->registry["redis"]["enable"]) {
         $options = array('servers' => array(array('host' => $this->registry["redis"]["host"], 'port' => $this->registry["redis"]["port"])));
         $this->rediska = new Rediska($options);
     }
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct();
     if ($this->registry["memc"]) {
         $this->cache = new Memcache();
         $this->cache->connect($this->registry["memc_adres"], $this->registry["memc_port"]);
     }
 }
Esempio n. 3
0
 function __construct()
 {
     parent::__construct();
     $this->view = $this->registry['view'];
     $this->model = new Engine_Model();
     $this->action = $this->registry["action"];
     $this->args = $this->registry["args"];
     $this->get = $this->registry["get"];
     $this->post = $this->registry["post"];
 }
Esempio n. 4
0
 public function __construct()
 {
     parent::__construct();
     if ($this->registry["redis"]["enable"]) {
         $this->cache = new Redis();
         if (isset($this->registry["redis"]["socket"])) {
             $this->cache->connect($this->registry["redis"]["socket"]);
         } else {
             if (isset($this->registry["redis"]["host"]) and isset($this->registry["redis"]["port"])) {
                 $this->cache->connect($this->registry["redis"]["host"], $this->registry["redis"]["port"]);
             } else {
                 if (isset($this->registry["redis"]["host"])) {
                     $this->cache->connect($this->registry["redis"]["host"]);
                 }
             }
         }
         $this->cache->setOption(Redis::OPT_PREFIX, 'ttw:');
     }
 }
Esempio n. 5
0
 function __construct()
 {
     parent::__construct();
     $this->main = $this->registry['layouts'];
     $this->twig = $this->registry['templates'];
 }
Esempio n. 6
0
 function __construct()
 {
     parent::__construct();
 }
Esempio n. 7
0
 function __construct()
 {
     parent::__construct();
     $this->view = $this->registry["view"];
 }
Esempio n. 8
0
 function __construct()
 {
     parent::__construct();
     $this->initView();
 }
Esempio n. 9
0
 function __construct()
 {
     parent::__construct();
     $this->memcached = $this->registry['memcached'];
 }