Browse Source

Change var -> public in controllertask.

Makes the confirmation message and generated code the same.
Fixes #2216
mark_story 14 years ago
parent
commit
aae8a89623
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Console/Command/Task/ControllerTask.php

+ 1 - 1
lib/Cake/Console/Command/Task/ControllerTask.php

@@ -219,7 +219,7 @@ class ControllerTask extends BakeTask {
 		$this->out(__d('cake_console', "Controller Name:\n\t%s", $controllerName));
 
 		if (strtolower($useDynamicScaffold) == 'y') {
-			$this->out("var \$scaffold;");
+			$this->out("public \$scaffold;");
 		}
 
 		$properties = array(