【问题标题】:how to fix codeignter4 Undefined variable: DBDriver at SYSTEMPATH\Commands\Generators\Views\migration.tpl.php:16如何修复 codeignter4 未定义变量:SYSTEMPATH\\Commands\\Generators\\Views\\migration.tpl.php:16 的 DBDriver
【发布时间】:2022-09-28 00:43:35
【问题描述】:

如何修复创建会话迁移它的说法

未定义的变量:DBDriver at SYSTEMPATH\\Commands\\Generators\\Views\\migration.tpl.php:16

    enter codnamespace {namespace};

use CodeIgniter\\Database\\Migration;
class {class} extends Migration
{
    protected $DBGroup = \'default\';
    public function up()
    {
        $this->forge->addField([
            \'id\' => [\'type\' => \'VARCHAR\', \'constraint\' => 128, \'null\' => false]e here
  • 这是完整的错误信息吗?
  • 是的,这是完全错误的。

标签: php codeigniter model-view-controller migration database-migration


【解决方案1】:

使用这个命令 php spark make:迁移--session

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-03-31
    • 1970-01-01
    • 2019-12-26
    • 1970-01-01
    • 2017-08-30
    • 2013-12-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多