/** * @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); }