abstrak:渲染后臺(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();
}
}
Guru membetulkan:天蓬老師Masa pembetulan:2019-03-30 10:43:26
Rumusan guru:function login(){
...
}
這樣定義函數(shù)是不符合PSR標(biāo)準(zhǔn)的, 大括號(hào)應(yīng)該獨(dú)立占一行:
function login()
{
.......
}