\Admin

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()
edit()
add()
update()
update_password()
delete()
check()
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

edit()

edit(  $id) 

Parameters

$id

add()

add() 

update()

update(  $id) 

Parameters

$id

update_password()

update_password() 

delete()

delete(  $id) 

Parameters

$id

check()

check() 

is_login()

is_login() 

判断admin是否登录

admin_view()

admin_view(  $view,   $data) 

Parameters

$view
$data

get_model()

get_model()