Example #1
0
 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);
 }
Example #2
0
 public function edit($id)
 {
     $result = ['data' => ThemeModel::find($id)];
     return view('home.theme.edit', $result);
 }
Example #3
0
 /**
  * 话题的主题
  */
 public function theme()
 {
     $themeid = $this->themeid ? $this->themeid : 0;
     $themeModel = ThemeModel::find($themeid);
     return $themeModel ? $themeModel : '';
 }