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); } }
public function __construct() { parent::__construct(); if ($this->registry["memc"]) { $this->cache = new Memcache(); $this->cache->connect($this->registry["memc_adres"], $this->registry["memc_port"]); } }
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"]; }
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:'); } }
function __construct() { parent::__construct(); $this->main = $this->registry['layouts']; $this->twig = $this->registry['templates']; }
function __construct() { parent::__construct(); }
function __construct() { parent::__construct(); $this->view = $this->registry["view"]; }
function __construct() { parent::__construct(); $this->initView(); }
function __construct() { parent::__construct(); $this->memcached = $this->registry['memcached']; }