From 024e30eb42b94406adfb543aa8adc766cae32c37 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 20 May 2012 16:06:28 -0400 Subject: [PATCH] Fix coding standards errors. Adding a private property allows fixing of 4 naming standards errors. --- lib/Cake/View/View.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/lib/Cake/View/View.php b/lib/Cake/View/View.php index 9db838418..a2669a2a4 100644 --- a/lib/Cake/View/View.php +++ b/lib/Cake/View/View.php @@ -289,6 +289,11 @@ class View extends Object { */ protected $_eventManager = null; +/** + * The view file to be rendered, only used inside _execute() + */ + private $__viewFileName = null; + /** * Whether the event manager was already configured for this object * @@ -897,17 +902,19 @@ class View extends Object { /** * Sandbox method to evaluate a template / view script in. * - * @param string $___viewFn Filename of the view + * @param string $viewFn Filename of the view * @param array $___dataForView Data to include in rendered view. * If empty the current View::$viewVars will be used. * @return string Rendered output */ - protected function _evaluate($___viewFn, $___dataForView) { - extract($___dataForView, EXTR_SKIP); + protected function _evaluate($viewFile, $dataForView) { + $this->__viewFile = $viewFile; + extract($dataForView); ob_start(); - include $___viewFn; + include $this->__viewFile; + unset($this->_viewFile); return ob_get_clean(); }