\User

控制器基类

Summary

Methods
Properties
Constants
result()
redirect()
assign()
forward()
view()
__construct()
Author()
Logout()
Login()
Register()
CheckAccount()
CheckEmail()
No public properties found
No constants found
No protected methods found
$data
N/A
No private methods found
$user
N/A

Properties

$data

$data : 

Type

$user

$user : 

Type

Methods

result()

result(integer  $code, string  $msg, null|mixed  $data = null) 

返回结果集

Parameters

integer $code

响应代码

string $msg

响应信息

null|mixed $data

响应数据

redirect()

redirect(string  $controller, string  $action, null|string  $args = null) 

重定向到视图

Parameters

string $controller

控制器名

string $action

方法名

null|string $args

参数

assign()

assign(string  $name, mixed  $value) 

分配参数

Parameters

string $name

变量名

mixed $value

值

forward()

forward(  $controller,   $action) 

Parameters

$controller
$action

view()

view(null|string  $path = null) 

加载视图

Parameters

null|string $path

加载视图文件名称

__construct()

__construct() 

Author()

Author() 

Logout()

Logout() 

Login()

Login() 

Register()

Register() 

CheckAccount()

CheckAccount() 

CheckEmail()

CheckEmail()