public function show($id) { $curr['name'] = $this->crumb['show']['name']; $curr['url'] = $this->crumb['show']['url']; $result = ['data' => ComModuleModel::find($id), 'model' => $this->model, 'crumb' => $this->crumb, 'curr' => $curr]; return view('admin.commodule.show', $result); }
public function show($id) { $curr['name'] = $this->lists['show']['name']; $curr['url'] = $this->lists['show']['url']; $result = ['data' => ComModuleModel::find($id), 'lists' => $this->lists, 'curr' => $curr, 'curr_func' => $this->lists['func']['url']]; return view('company.admin.singlemodule.show', $result); }
/** * 得到对应模块 */ public function getModule() { $module_id = $this->module_id ? $this->module_id : 0; $moduleModel = ComModuleModel::find($module_id); return $moduleModel ? $moduleModel : ''; }