サマリー:渲染后臺(tái)操作控制器內(nèi)容<?phpnamespace app\admin\controller;use think\captcha\Captcha;use think\Controller;class Account extends Controller{ function login(){return $this->fetch(); }}
渲染后臺(tái)操作控制器內(nèi)容
<?php
namespace app\admin\controller;
use think\captcha\Captcha;
use think\Controller;
class Account extends Controller
{
function login(){
return $this->fetch();
}
}
添削の先生:天蓬老師添削時(shí)間:2019-03-30 10:43:26
先生のまとめ:function login(){
...
}
這樣定義函數(shù)是不符合PSR標(biāo)準(zhǔn)的, 大括號(hào)應(yīng)該獨(dú)立占一行:
function login()
{
.......
}