本文整理匯總了PHP中iaUtil::errorPage方法的典型用法代碼示例。如果您正苦於以下問題:PHP iaUtil::errorPage方法的具體用法?PHP iaUtil::errorPage怎麽用?PHP iaUtil::errorPage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類iaUtil
的用法示例。
在下文中一共展示了iaUtil::errorPage方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
if (SMARTY) {
// get account recipes
if ('my_recipes' == INTELLI_REALM) {
if (!IN_USER) {
iaUtil::errorPage('403');
}
$fields = $iaCore->getAcoFieldsList(false, false, '', true);
$iaCore->assign_by_ref('fields', $fields);
$iaRecipe = $iaCore->factoryPackages(IA_CURRENT_PACKAGE, 'front', 'recipe');
$recipes = $iaRecipe->getRecipesByAccount($_SESSION['user']['id'], 0, 10);
$iaCore->assign('recipes', $recipes);
$iaCore->startHook('phpMyRecipesBeforeStart', array('item' => 'recipe'));
$iaCore->display('myrecipes');
} elseif ('my_cookbooks' == INTELLI_REALM) {
if (!IN_USER) {
iaUtil::errorPage('403');
}
$fields = $iaCore->getAcoFieldsList(false, 'cookbooks', '', true);
$iaCore->assign_by_ref('fields', $fields);
// get account cookbooks
$iaCookbook = $iaCore->factoryPackages(IA_CURRENT_PACKAGE, 'front', 'cookbook');
$cookbooks = $iaCookbook->getCookbooksByAccount($_SESSION['user']['id'], 0, 10);
$iaCore->assign('cookbooks', $cookbooks);
$iaCore->startHook('phpMyCookbooksBeforeStart', array('item' => 'cookbook'));
$iaCore->set_cfg('title', $iaCore->get_cfg('name'));
$iaCore->display('mycookbooks');
} elseif ('recipes_home' == INTELLI_REALM) {
$fields = $iaCore->getAcoFieldsList(false, false, '', true);
$iaCore->assign_by_ref('fields', $fields);
$iaCore->display();
}