本文整理汇总了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();
}