改名
This commit is contained in:
+4
-4
@@ -64,14 +64,14 @@ class Gii
|
||||
$this->db = Snowflake::app()->db->get($db);
|
||||
}
|
||||
$redis = Snowflake::app()->getRedis();
|
||||
if (!empty($input->get('t'))) {
|
||||
$this->tableName = $input->get('t');
|
||||
if (!empty($input->get('table'))) {
|
||||
$this->tableName = $input->get('table');
|
||||
$redis->del('column:' . $this->tableName);
|
||||
}
|
||||
if ($input->get('m', NULL)) {
|
||||
if ($input->get('model', NULL)) {
|
||||
$model = 1;
|
||||
}
|
||||
if ($input->get('c', NULL)) {
|
||||
if ($input->get('controller', NULL)) {
|
||||
$c = 1;
|
||||
}
|
||||
if ($input->get('isUpdate') == 1) {
|
||||
|
||||
+4
-4
@@ -20,11 +20,11 @@ abstract class GiiBase
|
||||
/** @var Input */
|
||||
protected $input;
|
||||
|
||||
public $modelPath = APP_PATH . '/models/';
|
||||
public $modelNamespace = 'models\\';
|
||||
public $modelPath = APP_PATH . '/app/Models/';
|
||||
public $modelNamespace = 'App\Models\\';
|
||||
|
||||
public $controllerPath = APP_PATH . '/app/Controllers/';
|
||||
public $controllerNamespace = 'App\\Controllers\\';
|
||||
public $controllerPath = APP_PATH . '/app/Http/Controllers/';
|
||||
public $controllerNamespace = 'App\\Http\\Controllers\\';
|
||||
|
||||
public $module = null;
|
||||
|
||||
|
||||
+2
-2
@@ -68,8 +68,8 @@ namespace ' . $namespace . ';
|
||||
|
||||
use Exception;
|
||||
use Snowflake\Core\JSON;
|
||||
use Snowflake\Database\Connection;
|
||||
use Snowflake\Database\ActiveRecord;';
|
||||
use Database\Connection;
|
||||
use Database\ActiveRecord;';
|
||||
}
|
||||
|
||||
$createSql = $this->setCreateSql($this->tableName);
|
||||
|
||||
Reference in New Issue
Block a user