You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
29
hyhproject/admin/controller/Hooks.php
Executable file
29
hyhproject/admin/controller/Hooks.php
Executable file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
namespace wstmart\admin\controller;
|
||||
use wstmart\admin\model\Hooks as M;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 广告控制器
|
||||
*/
|
||||
class Hooks extends Base{
|
||||
|
||||
public function index(){
|
||||
return $this->fetch("list");
|
||||
}
|
||||
/**
|
||||
* 获取分页
|
||||
*/
|
||||
public function pageQuery(){
|
||||
$m = new M();
|
||||
return WSTGrid($m->pageQuery());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取数据
|
||||
*/
|
||||
public function get(){
|
||||
$m = new M();
|
||||
return $m->getById(Input("id/d",0));
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user