/** * Get a variable by array access to the TemplateEngine * * @param string $offset The variable trying to be get * @return bool */ public function offsetGet($offset) { $val = $this->registry->getEntry($offset, null); if (empty($val)) { $val = $this->_getFallbackMethod($offset, array(), false, 'get'); } return $val; }