本文整理汇总了PHP中KunenaRoute::cacheLoad方法的典型用法代码示例。如果您正苦于以下问题:PHP KunenaRoute::cacheLoad方法的具体用法?PHP KunenaRoute::cacheLoad怎么用?PHP KunenaRoute::cacheLoad使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KunenaRoute
的用法示例。
在下文中一共展示了KunenaRoute::cacheLoad方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
// Get HMVC controller and if exists, execute it.
$controller = KunenaControllerApplication::getInstance($view, $subview, $task, $input, $app);
if ($controller)
{
KunenaRoute::cacheLoad();
$contents = $controller->execute();
KunenaRoute::cacheStore();
}
elseif (is_file(KPATH_SITE . "/controllers/{$view}.php"))
{
// Execute old MVC.
// Legacy support: If the content layout doesn't exist on HMVC, load and execute the old controller.
$controller = KunenaController::getInstance();
KunenaRoute::cacheLoad();
ob_start();
$controller->execute($task);
$contents = ob_get_clean();
KunenaRoute::cacheStore();
$controller->redirect();
}
else
{
// Legacy URL support.
$uri = KunenaRoute::current(true);
if ($uri)
{
// FIXME: using wrong Itemid
JFactory::getApplication()->redirect(KunenaRoute::_($uri, false));
}