public function init()
    {
        parent::init();
        if (is_array($this->theme)) {
            if (!isset($this->theme['class'])) {
                $this->theme['class'] = 'Reaction\Base\Theme';
            }
            $this->theme = \Reaction::create($this->theme);
        } elseif (is_string($this->theme)) {
            $this->theme = \Reaction::create($this->theme);
        }
    }
public function init()
    {
        parent::init();
        if (is_array($this->theme)) {
            if (!isset($this->theme['class'])) {
                $this->theme['class'] = 'Reaction\Base\Theme';
            }
            $this->theme = \Reaction::create($this->theme);
        } elseif (is_string($this->theme)) {
            $this->theme = \Reaction::create($this->theme);
        }
    }
public function init ( ) { parent :: init ( ) ; if ( is_array ( $ this -> theme ) ) { if ( ! isset ( $ this -> theme [ 'class' ] ) ) { $ this -> theme [ 'class' ] = 'Reaction\Base\Theme' ; } $ this -> theme = \ Reaction :: create ( $ this -> theme ) ; } elseif ( is_string ( $ this -> theme ) ) { $ this -> theme = \ Reaction :: create ( $ this -> theme ) ; } }
Initializes the view component.
Initializes the view component .