管理員添加模塊代碼
controller下添加管理員操作方法public function add(){renturn $this->fetch();}public function DoAdd(){//獲取前端提交數(shù)據(jù)$data = Request::param();//獲取添加時(shí)間$data['time'] = time();$username = data['username
韓春暉 2019-04-20 17:30:32 0 0 221
循環(huán)語(yǔ)句總結(jié)筆記
<?php//----------------for(循環(huán)變量初始化;循環(huán)條件;循環(huán)變量的更新){} for循環(huán)----------------function add($min,$max){ $data = range($min,$max); $count = count($data); $res = 0; &n
puppy 2018-11-24 19:44:46 0 0 232
管理員添加編輯刪除
public function add() { if(request()->isPost()){ $data = [ 'username
OneZone 2020-03-06 12:57:16 0 0 2257
OneZone 2020-03-06 12:57:37 0 0 2343
管理員添加保存和刪除
// 添加管理員 public function add(){ $id = (int)input('get.id'); $data['item'] = $this->db->table('admins')->where(array('
奔騰的心 2019-03-29 16:54:10 0 0 236