samdark / yii2-cookbook

Yii 2.0 Community Cookbook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PJAX: open all links with PJAX but make some exceptions

samdark opened this issue · comments

<?php \yii\widgets\Pjax::begin([
    'linkSelector' => 'a:not('.no-pjax')',
<a class="no-pjax" href="http://example.com/">Read more</a>
commented

can't you just use data-pjax="0"?