yii\base\ViewContextInterface - Yii2 类参考手册

Interface yii\base\ViewContextInterface

Implemented byyii\apidoc\commands\ApiController, yii\apidoc\commands\GuideController, yii\apidoc\components\BaseController, yii\apidoc\templates\bootstrap\ApiRenderer, yii\apidoc\templates\bootstrap\SideNavWidget, yii\apidoc\templates\html\ApiRenderer, yii\apidoc\templates\json\ApiRenderer, yii\apidoc\templates\online\ApiRenderer, yii\authclient\widgets\AuthChoice, yii\authclient\widgets\AuthChoiceItem, yii\authclient\widgets\GooglePlusButton, yii\base\Controller, yii\base\Widget, yii\bootstrap4\Accordion, yii\bootstrap4\ActiveForm, yii\bootstrap4\Alert, yii\bootstrap4\Breadcrumbs, yii\bootstrap4\Button, yii\bootstrap4\ButtonDropdown, yii\bootstrap4\ButtonGroup, yii\bootstrap4\ButtonToolbar, yii\bootstrap4\Carousel, yii\bootstrap4\Dropdown, yii\bootstrap4\InputWidget, yii\bootstrap4\LinkPager, yii\bootstrap4\Modal, yii\bootstrap4\Nav, yii\bootstrap4\NavBar, yii\bootstrap4\Progress, yii\bootstrap4\Tabs, yii\bootstrap4\ToggleButtonGroup, yii\bootstrap4\Widget, yii\bootstrap\ActiveForm, yii\bootstrap\Alert, yii\bootstrap\Button, yii\bootstrap\ButtonDropdown, yii\bootstrap\ButtonGroup, yii\bootstrap\Carousel, yii\bootstrap\Collapse, yii\bootstrap\Dropdown, yii\bootstrap\InputWidget, yii\bootstrap\Modal, yii\bootstrap\Nav, yii\bootstrap\NavBar, yii\bootstrap\Progress, yii\bootstrap\Tabs, yii\bootstrap\ToggleButtonGroup, yii\bootstrap\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\debug\controllers\DefaultController, yii\debug\controllers\UserController, yii\debug\widgets\NavigationButton, yii\faker\FixtureController, yii\gii\console\GenerateController, yii\gii\controllers\DefaultController, yii\grid\GridView, yii\mail\BaseMailer, yii\mongodb\console\controllers\MigrateController, yii\queue\amqp\Command, yii\queue\amqp_interop\Command, yii\queue\beanstalk\Command, yii\queue\cli\Command, yii\queue\db\Command, yii\queue\debug\Panel, yii\queue\file\Command, yii\queue\gearman\Command, yii\queue\redis\Command, yii\rest\ActiveController, yii\rest\Controller, yii\swiftmailer\Mailer, 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, yiiunit\apidoc\support\controllers\ApiControllerMock, yiiunit\apidoc\support\controllers\GuideControllerMock
Available since version2.0

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.

Public Methods

隐藏继承的方法 Hide inherited methods

方法 Method简介 Description定义在 Defined By
getViewPath() yii\base\ViewContextInterface

方法详情 Method Details

getViewPath() public abstract method

public abstract string getViewPath ( )
return string

The view path that may be prefixed to a relative view name.