| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class Model_power extends Lin_Model
- {
- function __construct(){
- parent::__construct();
- $this->load->database();
- $this->table = 'power';
- $this->load_table('power');
- }
- /** 通过名称查找 */
- public function get_powertext($powertext)
- {
- return $this->find("powertext like '%$powertext%'");
- }
- public function _lyapi(){
- $type_list = [
- [
- 'id'=>100001,
- 'title'=>"仓库管理",
- 'sort'=>10,
- ]
- ];
- $lyapi_list = [
- [
- 'id'=>1,
- 'classid'=>100001,
- 'shortname'=>'cksccktp',
- 'title'=>"上传出库图片",
- 'sort'=>10,
- ]
- ];
- return [
- 'type_list' => $type_list,
- 'lyapi_list' => $lyapi_list,
- ];
- }
- } //end class
|