function action_detail() { PermissionHelper::Verification('Editor'); $section_id = $_GET['id']; $model = SectionHelper::PopulateSectionViewModel(SectionService::GetById($section_id)); $this->view->generate('/Section/detail_view.php', 'template_view.php', $model); }
public static function PopulateSectionViewModelList($sections) { for ($i = 0; $i < count($sections); $i++) { $models[$i] = SectionHelper::PopulateSectionViewModel($sections[$i]); } return $models; }