Z
Z
zwebz2014-10-19 23:18:02
Yii
zwebz, 2014-10-19 23:18:02

What is called in Yii2 after the $this -> endPage() method?

Now I am transferring the project from Yii1 to Yii2, I ran into a problem in which a blank page is displayed in the browser, not a line of code, the debugger is also not loaded. If I put it after the method , the
$this -> endPage(); die;
page is displayed normally. Has anyone had a similar problem and can give some advice?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2014-10-19
Protko @Fesor

php logs, display_error enabled? Don't have an IDE to view the method definition? Can't you google and look at the documentation for the source of this method?

P
phpnt, 2015-03-06
@phpnt

Adding CSS, JS, JQuery and other resources to Yii... - $this->endPage() is the template end mark, also used in the registerJS() method of the View class, to register the script.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question