yii\widgets\Pjax::requiresPjax PHP 메소드

requiresPjax() 보호된 메소드

protected requiresPjax ( ) : boolean
리턴 boolean whether the current request requires pjax response from this widget
    protected function requiresPjax()
    {
        $headers = Yii::$app->getRequest()->getHeaders();
        return $headers->get('X-Pjax') && explode(' ', $headers->get('X-Pjax-Container'))[0] === '#' . $this->options['id'];
    }