\app\home\controllerIndexController

Summary

Methods
Properties
Constants
__construct()
content()
__call()
indexAction()
$category_list
$conf
$assign
No constants found
model()
url()
assign()
display()
success()
error()
response()
json()
redirect()
notFound()
$db
$view
N/A
No private methods found
No private properties found
N/A

Properties

$category_list

$category_list

$conf

$conf

$assign

$assign

$db

$db

$view

$view

Methods

__construct()

__construct() : mixed

Returns

mixed —

content()

content(mixed  $content) : mixed

调用内容

Parameters

mixed $content

Returns

mixed —

__call()

__call(mixed  $fun, mixed  $arg) : mixed

Parameters

mixed $fun
mixed $arg

Returns

mixed —

indexAction()

indexAction() : mixed

Returns

mixed —

model()

model(mixed  $model, mixed  $module = MODULE) : mixed

模型定义

Parameters

mixed $model
mixed $module

Returns

mixed —

url()

url(mixed  $url) : mixed

url的方法

Parameters

mixed $url

Returns

mixed —

assign()

assign(mixed  $name = [], mixed  $data = '') : mixed

为模板对象赋值

Parameters

mixed $name
mixed $data

Returns

mixed —

display()

display(mixed  $tplfile = '', mixed  $data = []) : mixed

调用视图

Parameters

mixed $tplfile
mixed $data

Returns

mixed —

success()

success(mixed  $msg = '', mixed  $url = '', mixed  $data = [], mixed  $ajax = false) : mixed

Parameters

mixed $msg
mixed $url
mixed $data
mixed $ajax

Returns

mixed —

error()

error(mixed  $msg = '', mixed  $url = '', mixed  $data = [], mixed  $ajax = false) : mixed

Parameters

mixed $msg
mixed $url
mixed $data
mixed $ajax

Returns

mixed —

response()

response(mixed  $code = '', mixed  $msg = '', mixed  $url = '', mixed  $data = [], mixed  $ajax = false) : mixed

Parameters

mixed $code
mixed $msg
mixed $url
mixed $data
mixed $ajax

Returns

mixed —

json()

json(mixed  $data) : mixed

json方法

Parameters

mixed $data

Returns

mixed —

redirect()

redirect(mixed  $url = '') : mixed

跳转

Parameters

mixed $url

Returns

mixed —

notFound()

notFound() : mixed

404方法

Returns

mixed —