remove MODELS constant

This commit is contained in:
AD7six 2011-04-17 12:05:56 +02:00
parent af505df885
commit 62d66bc3ad
2 changed files with 10 additions and 7 deletions

View file

@ -30,12 +30,12 @@ App::uses('Validation', 'Utility');
class ModelTask extends BakeTask {
/**
* path to MODELS directory
* path to Model directory
*
* @var string
* @access public
*/
public $path = MODELS;
public $path = null;
/**
* tasks
@ -69,6 +69,14 @@ class ModelTask extends BakeTask {
*/
protected $_validations = array();
/**
* Override initialize
*
*/
public function initialize() {
$this->path = App::path('Model');
}
/**
* Execution method always used for tasks
*

View file

@ -48,11 +48,6 @@ if (!defined('APP')) {
define('APP', ROOT.DS.APP_DIR.DS);
}
/**
* Path to the application's models directory.
*/
define('MODELS', APP.'Model'.DS);
/**
* Path to model behaviors directory.
*/