mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Moving beforeLayout, before additional viewVars are processed. Refs #624
This commit is contained in:
parent
09d3a0626a
commit
157bdfafc6
1 changed files with 1 additions and 1 deletions
|
@ -423,6 +423,7 @@ class View extends Object {
|
|||
if (empty($layoutFileName)) {
|
||||
return $this->output;
|
||||
}
|
||||
$this->Helpers->trigger('beforeLayout', array(&$this));
|
||||
|
||||
$dataForLayout = array_merge($this->viewVars, array(
|
||||
'content_for_layout' => $content_for_layout,
|
||||
|
@ -441,7 +442,6 @@ class View extends Object {
|
|||
$dataForLayout = array_merge($dataForLayout);
|
||||
}
|
||||
|
||||
$this->Helpers->trigger('beforeLayout', array(&$this));
|
||||
$this->output = $this->_render($layoutFileName, $dataForLayout, $loadHelpers, true);
|
||||
|
||||
if ($this->output === false) {
|
||||
|
|
Loading…
Reference in a new issue