CLI模式
在CLI模式下调用的格式,如生成模型:php think make:model Hello
控制器
<?php
namespace app\controller;
class Index
{
public function index()
{
return \think\facade\Console::call('make:model',['Hello'])->fetch();
}
}
在CLI模式下调用的格式,如生成模型:php think make:model Hello
<?php
namespace app\controller;
class Index
{
public function index()
{
return \think\facade\Console::call('make:model',['Hello'])->fetch();
}
}