E
E
EVOSandru62015-02-09 11:42:16
Yii
EVOSandru6, 2015-02-09 11:42:16

How to write layout in external action in Yii?

Good afternoon,
In the usual action of the controller, you can write it in the run () method of the external action as well, but it does not apply( How to be?
$this->layout = '//layouts/column3';

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vit, 2015-02-09
@fornit1917

Try $this->controller->layout

M
Maxim Timofeev, 2015-02-09
@webinar

run your external action through controller don't try to break MCV

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question