3
* Controller bake template file
5
* Allows templating of Controllers generated from bake.
9
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
10
* Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
12
* Licensed under The MIT License
13
* Redistributions of files must retain the above copyright notice.
15
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
16
* @link http://cakephp.org CakePHP(tm) Project
19
* @since CakePHP(tm) v 1.3
20
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
25
class <?php echo $controllerName; ?>Controller extends <?php echo $plugin; ?>AppController {
27
var $name = '<?php echo $controllerName; ?>';
28
<?php if ($isScaffold): ?>
33
echo "\tvar \$helpers = array(";
34
for ($i = 0, $len = count($helpers); $i < $len; $i++):
36
echo "'" . Inflector::camelize($helpers[$i]) . "', ";
38
echo "'" . Inflector::camelize($helpers[$i]) . "'";
44
if (count($components)):
45
echo "\tvar \$components = array(";
46
for ($i = 0, $len = count($components); $i < $len; $i++):
48
echo "'" . Inflector::camelize($components[$i]) . "', ";
50
echo "'" . Inflector::camelize($components[$i]) . "'";
b'\\ No newline at end of file'