mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
remove MODELS constant
This commit is contained in:
parent
af505df885
commit
62d66bc3ad
2 changed files with 10 additions and 7 deletions
|
@ -30,12 +30,12 @@ App::uses('Validation', 'Utility');
|
||||||
class ModelTask extends BakeTask {
|
class ModelTask extends BakeTask {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* path to MODELS directory
|
* path to Model directory
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
public $path = MODELS;
|
public $path = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* tasks
|
* tasks
|
||||||
|
@ -69,6 +69,14 @@ class ModelTask extends BakeTask {
|
||||||
*/
|
*/
|
||||||
protected $_validations = array();
|
protected $_validations = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Override initialize
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function initialize() {
|
||||||
|
$this->path = App::path('Model');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Execution method always used for tasks
|
* Execution method always used for tasks
|
||||||
*
|
*
|
||||||
|
|
|
@ -48,11 +48,6 @@ if (!defined('APP')) {
|
||||||
define('APP', ROOT.DS.APP_DIR.DS);
|
define('APP', ROOT.DS.APP_DIR.DS);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Path to the application's models directory.
|
|
||||||
*/
|
|
||||||
define('MODELS', APP.'Model'.DS);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Path to model behaviors directory.
|
* Path to model behaviors directory.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue