\Trading

Admin/Base Controller 在这里可以定义admin后台需要的通用方法

This class object is the super class that every library in CodeIgniter will be assigned to.

Summary

Methods
Properties
Constants
__construct()
get_model_name()
get_instance()
index()
test2()
randomFloat()
test()
No public properties found
No constants found
is_login()
admin_view()
get_model()
No protected properties found
N/A
No private methods found
$param
$instance
N/A

Properties

$param

$param : 

Type

$instance

$instance : object

Reference to the CI singleton

Type

object

Methods

__construct()

__construct() 

get_model_name()

get_model_name() 

根据controller加载模型

get_instance()

get_instance() : object

Get the CI singleton

Returns

object

index()

index(  $page_no) 

Parameters

$page_no

test2()

test2() 

randomFloat()

randomFloat(  $min,   $max = 1) 

Parameters

$min
$max

test()

test() 

is_login()

is_login() 

判断admin是否登录

admin_view()

admin_view(  $view,   $data) 

Parameters

$view
$data

get_model()

get_model()