Exemplo 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);
     }
 }
Exemplo 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"]);
     }
 }
Exemplo 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"];
 }
Exemplo 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:');
     }
 }
Exemplo n.º 5
0
 function __construct()
 {
     parent::__construct();
     $this->main = $this->registry['layouts'];
     $this->twig = $this->registry['templates'];
 }
Exemplo n.º 6
0
 function __construct()
 {
     parent::__construct();
 }
Exemplo n.º 7
0
 function __construct()
 {
     parent::__construct();
     $this->view = $this->registry["view"];
 }
Exemplo n.º 8
0
 function __construct()
 {
     parent::__construct();
     $this->initView();
 }
Exemplo n.º 9
0
 function __construct()
 {
     parent::__construct();
     $this->memcached = $this->registry['memcached'];
 }