add new change in ams system and index.php file : Venkateshwaran
This commit is contained in:
parent
d7c6eac345
commit
d52e44c845
803
composer.lock
generated
803
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@ -99,7 +99,6 @@
|
|||||||
|
|
||||||
case 'testing':
|
case 'testing':
|
||||||
ini_set('display_errors', 1);
|
ini_set('display_errors', 1);
|
||||||
error_reporting(-1);
|
|
||||||
// if (version_compare(PHP_VERSION, '5.3', '>=')) {
|
// if (version_compare(PHP_VERSION, '5.3', '>=')) {
|
||||||
// error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
|
// error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
|
||||||
// } else {
|
// } else {
|
||||||
|
|||||||
@ -326,18 +326,18 @@ public function model($model, $name = '', $db_conn = FALSE)
|
|||||||
|
|
||||||
$model = ucfirst($model);
|
$model = ucfirst($model);
|
||||||
if ( ! class_exists($model, FALSE))
|
if ( ! class_exists($model, FALSE))
|
||||||
{
|
{
|
||||||
foreach ($this->_ci_model_paths as $mod_path)
|
foreach ($this->_ci_model_paths as $mod_path)
|
||||||
{
|
{
|
||||||
if ( ! file_exists($mod_path.'models/'.$path.$model.'.php'))
|
if ( ! file_exists($mod_path.'modules/'.ucfirst($path).'models/'.$model.'.php'))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once($mod_path.'models/'.$path.$model.'.php');
|
require_once($mod_path.'modules/'.ucfirst($path).'models/'.$model.'.php');
|
||||||
if ( ! class_exists($model, FALSE))
|
if ( ! class_exists($model, FALSE))
|
||||||
{
|
{
|
||||||
throw new RuntimeException($mod_path."models/".$path.$model.".php exists, but doesn't declare class ".$model);
|
throw new RuntimeException($mod_path."modules/".ucfirst($path)."models/".$model.".php exists, but doesn't declare class ".$model);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user