12345678910111213141516171819202122232425262728 |
- <?php
- namespace Demo\Vogue;
- use Dever;
- class Cat
- {
- public function test()
- {
- return 1;
- }
- public function data($id, $name)
- {
-
-
-
- $cat = Dever::db('demo/cat');
- $one = $cat->query('select * from {table} where state = :0', array(':0' => 1))->fetchAll();
- $data['name'] = '服饰';
- $data['where_id'] = 2;
-
-
- $data = $cat->getList(array('option_state' => 1));
- return $data;
- }
- }
|