* fix bug #748.
This commit is contained in:
@@ -15,7 +15,7 @@ class apiModel extends model
|
||||
{
|
||||
$fileName = dirname($filePath);
|
||||
$className = basename(dirname(dirname($filePath)));
|
||||
if(!class_exists($className)) include($fileName);
|
||||
if(!class_exists($className)) helper::import($fileName);
|
||||
$methodName = basename($filePath);
|
||||
|
||||
$method = new ReflectionMethod($className . $ext, $methodName);
|
||||
|
||||
@@ -392,7 +392,7 @@ class editorModel extends model
|
||||
public function extendModel($filePath)
|
||||
{
|
||||
$className = basename(dirname(dirname($filePath)));
|
||||
if(!class_exists($className)) include(dirname($filePath));
|
||||
if(!class_exists($className)) helper::import(dirname($filePath));
|
||||
$methodName = basename($filePath);
|
||||
$methodParam = $this->getParam($className, $methodName, 'Model');
|
||||
return $fileContent = <<<EOD
|
||||
@@ -414,7 +414,7 @@ EOD;
|
||||
public function extendControl($filePath, $isExtends)
|
||||
{
|
||||
$className = basename(dirname(dirname($filePath)));
|
||||
if(!class_exists($className)) include(dirname($filePath));
|
||||
if(!class_exists($className)) helper::import(dirname($filePath));
|
||||
$methodName = basename($filePath);
|
||||
if($isExtends == 'yes')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user