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:
gwoo 2007-05-25 05:41:07 +00:00
parent e965ac1df0
commit 67144a0341

View file

@ -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);