remove CONTROLLERS constant

This commit is contained in:
AD7six 2011-04-17 11:13:04 +02:00
parent bd0a303c09
commit 80e68763a3
3 changed files with 5 additions and 9 deletions

View file

@ -36,18 +36,19 @@ class ControllerTask extends BakeTask {
public $tasks = array('Model', 'Test', 'Template', 'DbConfig', 'Project');
/**
* path to CONTROLLERS directory
* path to Controller directory
*
* @var array
* @access public
*/
public $path = CONTROLLERS;
public $path = null;
/**
* Override initialize
*
*/
public function initialize() {
$this->path = App::path('Controller');
}
/**

View file

@ -28,7 +28,7 @@ App::uses('Folder', 'Utility');
class PluginTask extends Shell {
/**
* path to CONTROLLERS directory
* path to plugins directory
*
* @var array
* @access public
@ -184,7 +184,7 @@ class PluginTask extends Shell {
*/
public function getOptionParser() {
$parser = parent::getOptionParser();
return $parser->description(__d('cake_console',
return $parser->description(__d('cake_console',
'Create the directory structure, AppModel and AppController classes for a new plugin. ' .
'Can create plugins in any of your bootstrapped plugin paths.'
))->addArgument('name', array(

View file

@ -58,11 +58,6 @@ if (!defined('APP')) {
*/
define('BEHAVIORS', MODELS.'Behavior'.DS);
/**
* Path to the application's controllers directory.
*/
define('CONTROLLERS', APP.'Controller'.DS);
/**
* Path to the application's components directory.
*/