public function show($id) { $curr['name'] = $this->crumb['show']['name']; $curr['url'] = $this->crumb['show']['url']; $result = ['data' => ThemeModel::find($id), 'crumb' => $this->crumb, 'curr' => $curr]; return view('admin.theme.show', $result); }
public function edit($id) { $result = ['data' => ThemeModel::find($id)]; return view('home.theme.edit', $result); }
/** * 话题的主题 */ public function theme() { $themeid = $this->themeid ? $this->themeid : 0; $themeModel = ThemeModel::find($themeid); return $themeModel ? $themeModel : ''; }