core/web/Element.php
public function init()
    {
        $path = Yii::getAlias($this->configFile);
        if (file_exists($path)) {
            $config = (include($path));
            foreach ($config as $name => $closure) {
                if (is_array($closure)) {
                    $this->addElement($name, $closure[0], $closure[1]);
                } else {
                    $this->addElement($name, $closure);
                }
            }
        }
    }
public function init()
    {
        $path = Yii::getAlias($this->configFile);
        if (file_exists($path)) {
            $config = (include($path));
            foreach ($config as $name => $closure) {
                if (is_array($closure)) {
                    $this->addElement($name, $closure[0], $closure[1]);
                } else {
                    $this->addElement($name, $closure);
                }
            }
        }
    }
public function init ( ) { $ path = Yii :: getAlias ( $ this -> configFile ) ; if ( file_exists ( $ path ) ) { $ config = ( include ( $ path ) ) ; foreach ( $ config as $ name => $ closure ) { if ( is_array ( $ closure ) ) { $ this -> addElement ( $ name , $ closure [ 0 ] , $ closure [ 1 ] ) ; } else { $ this -> addElement ( $ name , $ closure ) ; } } } }
Yii intializer, is loading the default elements.php if existing.
Yii intializer is loading the default elements . php if existing .