core/web/View.php
public function init()
    {
        // call parent initializer
        parent::init();
        // auto register csrf tags if enabled
        if ($this->autoRegisterCsrf && Yii::$app->request->enableCsrfValidation) {
            $this->registerCsrfMetaTags();
        }
    }
public function init()
    {
        // call parent initializer
        parent::init();
        // auto register csrf tags if enabled
        if ($this->autoRegisterCsrf && Yii::$app->request->enableCsrfValidation) {
            $this->registerCsrfMetaTags();
        }
    }
public function init ( ) { // call parent initializer parent :: init ( ) ; // auto register csrf tags if enabled if ( $ this -> autoRegisterCsrf && Yii :: $ app -> request -> enableCsrfValidation ) { $ this -> registerCsrfMetaTags ( ) ; } }
Init view object. Implements auto register csrf meta tokens.
@see \yii\base\View::init()
Init view object . Implements auto register csrf meta tokens .