改名
This commit is contained in:
+3
-4
@@ -57,16 +57,15 @@ class GiiModel extends GiiBase
|
|||||||
if (file_exists($modelPath['path'] . '/' . $managerName . '.php')) {
|
if (file_exists($modelPath['path'] . '/' . $managerName . '.php')) {
|
||||||
try {
|
try {
|
||||||
$class = new \ReflectionClass($modelPath['namespace'] . '\\' . $managerName);
|
$class = new \ReflectionClass($modelPath['namespace'] . '\\' . $managerName);
|
||||||
|
|
||||||
|
$html = $this->getUseContent($class, $classFileName);
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
var_dump($e->getMessage());
|
var_dump($e->getMessage());
|
||||||
}
|
}
|
||||||
$html = $this->getUseContent($class, $classFileName);
|
|
||||||
} else {
|
|
||||||
$html = '';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (empty($html)) {
|
if (!isset($html) || empty($html)) {
|
||||||
$html = '<?php
|
$html = '<?php
|
||||||
namespace ' . $namespace . ';
|
namespace ' . $namespace . ';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user