\application\home\controllerindex

Summary

Methods
Properties
Constants
__construct()
assign()
display()
redirect()
ajaxReturn()
cliReturn()
changeTableVal()
code()
cookie()
session()
index()
lists()
show()
$user_id
$module
$controlloer
$action
$config
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$user_id

$user_id : 

Type

$module

$module : 

Type

$controlloer

$controlloer : 

Type

$action

$action : 

Type

$config

$config : 

Type

Methods

__construct()

__construct() 

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

index()

index() 

首页

lists()

lists() 

栏目列表页

show()

show() 

内容页