\application\admin\controllersitemodel

Summary

Methods
Properties
Constants
__construct()
breadcrumb()
assign()
display()
redirect()
ajaxReturn()
cliReturn()
changeTableVal()
code()
cookie()
session()
index()
$user_id
$p
$db
$module
$controlloer
$action
No constants found
No protected methods found
No protected properties found
N/A
check_admin()
check_priv()
check_referer()
set_site()
search_frm()
No private properties found
N/A

Properties

$user_id

$user_id : 

Type

$p

$p : 

Type

$db

$db : 

Type

$module

$module : 

Type

$controlloer

$controlloer : 

Type

$action

$action : 

Type

Methods

__construct()

__construct() 

breadcrumb()

breadcrumb() 

当前位置/admin/auth/breadcrumb/?m=admin&c=friendlink&a=index

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() 

check_admin()

check_admin() 

判断用户是否已经登陆

check_priv()

check_priv() 

权限判断

check_referer()

check_referer() 

检查REFERER

set_site()

set_site() 

设置默认站点

search_frm()

search_frm()