add new change in ams system and index.php file : Venkateshwaran

This commit is contained in:
venkateswaran ubuntu 2023-06-24 16:46:22 +05:30
parent d7c6eac345
commit d52e44c845
3 changed files with 385 additions and 429 deletions

799
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -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 {

View File

@ -329,15 +329,15 @@ public function model($model, $name = '', $db_conn = 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;