/** * @param $one */ public function getSection($one) { $section = $this->section->getSection($one); $data = ['section' => $section, 'list' => $this->category->getCategoryFromSection($one)]; // title設定 $this->title($section->name); $this->view('home.section.index', $data); }
/** * レシピ詳細 * @param null $one */ public function getShow($one = null) { $category = $this->category->getCategory($one); $data = ['category' => $category, 'section' => $this->section->getSection($category->section_id)]; $this->view('webmaster.category.show', $data); }