Interface yii\base\ViewContextInterface
Implemented by | yii\base\Controller, yii\base\Widget, yii\captcha\Captcha, yii\console\Controller, yii\console\controllers\AssetController, yii\console\controllers\BaseMigrateController, yii\console\controllers\CacheController, yii\console\controllers\FixtureController, yii\console\controllers\HelpController, yii\console\controllers\MessageController, yii\console\controllers\MigrateController, yii\console\controllers\ServeController, yii\console\widgets\Table, yii\grid\GridView, yii\mail\BaseMailer, yii\rest\ActiveController, yii\rest\Controller, yii\web\Controller, yii\widgets\ActiveForm, yii\widgets\BaseListView, yii\widgets\Block, yii\widgets\Breadcrumbs, yii\widgets\ContentDecorator, yii\widgets\DetailView, yii\widgets\FragmentCache, yii\widgets\InputWidget, yii\widgets\LinkPager, yii\widgets\LinkSorter, yii\widgets\ListView, yii\widgets\MaskedInput, yii\widgets\Menu, yii\widgets\Pjax, yii\widgets\Spaceless |
Available since version | 2.0 |
Source Code |
https://github.com/yiisoft/yii2/blob/master/framework/base/ViewContextInterface.php |
ViewContextInterface is the interface that should implemented by classes who want to support relative view names.
The method getViewPath() should be implemented to return the view path that may be prefixed to a relative view name.
Method Details
Signup or Login in order to comment.