class Controller extends AppController { var $name = ''; var $scaffold; _modelName($controllerName) . "'"; foreach ($uses as $use): echo ", '" . $this->_modelName($use) . "'"; endforeach; echo ");\n"; endif; echo "\tvar \$helpers = array('Html', 'Form'"; if (count($helpers)): foreach ($helpers as $help): echo ", '" . Inflector::camelize($help) . "'"; endforeach; endif; echo ");\n"; if (count($components)): echo "\tvar \$components = array("; for ($i = 0, $len = count($components); $i < $len; $i++): if ($i != $len - 1): echo "'" . Inflector::camelize($components[$i]) . "', "; else: echo "'" . Inflector::camelize($components[$i]) . "'"; endif; endfor; echo ");\n"; endif; echo $actions; endif; ?> } "; ?>