Ejemplo n.º 1
0
 public function __construct($options = array())
 {
     if (isset($options['i18n'])) {
         $this->i18n = $options['i18n'];
     }
     if (isset($options['layout'])) {
         $this->layout = $options['layout'];
     }
     if (isset($options['content'])) {
         $this->content = $options['content'];
     }
     if (isset($options['cache'])) {
         $this->cache = true;
     }
     parent::__construct(@$options['engine']);
 }
Ejemplo n.º 2
0
 public function __construct(Kernel $kernel, array $options = array())
 {
     if (isset($options['i18n'])) {
         $this->i18n = $options['i18n'];
     }
     if (isset($options['layout'])) {
         $this->layout = $options['layout'];
     }
     if (isset($options['content'])) {
         $this->content = $options['content'];
     }
     if (isset($options['cache'])) {
         $this->cache = true;
     }
     parent::__construct($kernel, $options);
 }