mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
moving beforeRender to before loadView
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5184 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
e965ac1df0
commit
67144a0341
1 changed files with 3 additions and 1 deletions
|
@ -589,12 +589,14 @@ class Controller extends Object {
|
|||
* @return unknown
|
||||
*/
|
||||
function render($action = null, $layout = null, $file = null) {
|
||||
|
||||
$this->beforeRender();
|
||||
|
||||
$viewClass = $this->view;
|
||||
if ($this->view != 'View') {
|
||||
$viewClass = $this->view . 'View';
|
||||
loadView($this->view);
|
||||
}
|
||||
$this->beforeRender();
|
||||
|
||||
foreach($this->components as $c) {
|
||||
$path = preg_split('/\/|\./', $c);
|
||||
|
|
Loading…
Reference in a new issue