1 | <?php |
||
19 | class View extends \yii\base\View |
||
20 | { |
||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | public $defaultExtension = 'twig'; |
||
25 | |||
26 | 5 | public function init() |
|
27 | { |
||
28 | parent::init(); |
||
29 | 5 | $this->theme->pathMap['@app/views'] = array_merge( |
|
30 | 5 | (array) $this->theme->pathMap['@app/views'], |
|
31 | (array) Yii::$app->get('config')->rawItem('views') |
||
32 | ); |
||
33 | 5 | } |
|
34 | |||
35 | public function getConfig() |
||
36 | { |
||
37 | return Yii::$app->config; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * Returns rendering context. |
||
42 | */ |
||
43 | 3 | public function getContext() |
|
47 | |||
48 | public function existsTemplate($template) |
||
49 | { |
||
52 | |||
53 | 3 | public function render($template, $data = [], $context = null) |
|
57 | } |
||
58 |