Skip to content
Permalink
Browse files

Fix coding standards errors.

Adding a private property allows fixing of 4 naming standards
errors.
  • Loading branch information...
markstory committed May 20, 2012
1 parent 16a1a0e commit 024e30eb42b94406adfb543aa8adc766cae32c37
Showing with 11 additions and 4 deletions.
  1. +11 −4 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 @@ protected function _render($viewFile, $data = array()) {
/**
* 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();
}

0 comments on commit 024e30e

Please sign in to comment.
You can’t perform that action at this time.