\application\admin\controllertools

Summary

Methods
Properties
Constants
assign()
display()
redirect()
ajaxReturn()
cliReturn()
changeTableVal()
code()
cookie()
session()
admin()
clear_cache()
$module
$controlloer
$action
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$module

$module : 

Type

$controlloer

$controlloer : 

Type

$action

$action : 

Type

Methods

assign()

assign(  $name,   $value) 

Parameters

$name
$value

display()

display(null  $viewName,   $module = null) 

Parameters

null $viewName

模板名或模板完整路径

$module

redirect()

redirect(  $uri, integer  $refresh) 

Parameters

$uri

跳转地址

integer $refresh

延迟跳转时间

ajaxReturn()

ajaxReturn(array  $data,   $type) 

Parameters

array $data
$type

cliReturn()

cliReturn(string  $message,   $type) 

Parameters

string $message
$type

changeTableVal()

changeTableVal() 

update tky_member set `1` = '0' where `uid` = "1" changeTableVal/?table=tky_newsclass&id_name=classid&id_value=2&field=closed&value=1

code()

code() 

验证码图像

cookie()

cookie(  $name,   $value) 

Parameters

$name
$value

session()

session(  $name,   $value = '',   $expire = 1440) 

Parameters

$name
$value
$expire

admin()

admin() 

admin密码

clear_cache()

clear_cache()