return false; } $lang = $currentMenu['lang']; $config = $c->config($lang); $table = $currentMenu['tableData']; $urlImg = $c->_model->_listWebMenuType(); /*view*/ $controlType = 'control' . $currentMenu['typeMenuName']; $cD = new $controlType($aliasDetail); $rowDetail = $cD->_model->_viewDetail($aliasDetail); if ($rowDetail['id'] == '') { $error = ERROR_NOT_FOUND_PAGE; header('location: ' . CONS_BASE_URL); //include_once('view/web_error.php'); return false; } if ($rowDetail['img'] != '') { $img = CONS_BASE_URL . '/' . $currentMenu['typeMenuImg'] . $rowDetail['img']; } else { $img = CONS_BASE_URL . '/' . CONS_IMAGE_DEFAULT; } $tagHead = $c->tagHead($rowDetail['name'], $rowDetail['description'], $rowDetail['tags'], $img, CONS_BASE_URL . '/' . $rowDetail['url']); $viewData = ob_start(); if (file_exists("view/{$table}_detail.php")) { include_once "view/{$table}_detail.php"; } else { echo ERROR_NOT_FOUND_FILE; } $viewData = ob_get_clean(); /*end view*/ include_once 'view/web.php';