當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PageController::addHelper方法代碼示例

本文整理匯總了PHP中PageController::addHelper方法的典型用法代碼示例。如果您正苦於以下問題:PHP PageController::addHelper方法的具體用法?PHP PageController::addHelper怎麽用?PHP PageController::addHelper使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PageController的用法示例。


在下文中一共展示了PageController::addHelper方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: prepare_company_website_controller

/**
 * Set internals of specific company website controller
 *
 * @access public
 * @param PageController $controller
 * @param string $layout Project or company website layout. Or any other...
 * @return null
 */
function prepare_company_website_controller(PageController $controller, $layout = 'website') {

	if (defined('CONSOLE_MODE') && CONSOLE_MODE) return;
	
	// If we don't have logged user prepare referer params and redirect user to login page
	if(!(logged_user() instanceof Contact)) {
		$ref_params = array();
		foreach($_GET as $k => $v) $ref_params['ref_' . $k] = $v;		
		$controller->redirectTo('access', 'login', $ref_params);
	} // if

	$controller->setLayout($layout);
	$controller->addHelper('form', 'breadcrumbs', 'pageactions', 'tabbednavigation', 'company_website', 'project_website', 'textile', 'dimension');
} // prepare_company_website_controller
開發者ID:Jtgadbois,項目名稱:Pedadida,代碼行數:22,代碼來源:functions.php

示例2: array

 /**
 * Set internals of specific company website controller
 *
 * @access public
 * @param PageController $controller
 * @param string $layout Project or company website layout. Or any other...
 * @return null
 */
 function prepare_company_website_controller(PageController $controller, $layout = 'dashboard') {
   
   // If we don't have logged user prepare referer params and redirect user to login page
   if (!(logged_user() instanceof User)) {
     $ref_params = array();
     foreach ($_GET as $k => $v) {
       $ref_params['ref_' . $k] = $v;
     }
     trace(__FILE__, 'prepare_company_website_controller(): not logged in, redirect');
     $controller->redirectTo('access', 'login', $ref_params);
   } // if
   
   $controller->setLayout($layout);
   $controller->addHelper('breadcrumbs');
   $controller->addHelper('pageactions');
   $controller->addHelper('tabbednavigation');
   $controller->addHelper('company_website');
   $controller->addHelper('project_website');
 } // prepare_company_website_controller
開發者ID:rjv,項目名稱:Project-Pier,代碼行數:27,代碼來源:functions.php

示例3: prepare_company_website_controller

/**
 * Set internals of specific company website controller
 *
 * @access public
 * @param PageController $controller
 * @param string $layout Project or company website layout. Or any other...
 * @return null
 */
function prepare_company_website_controller(PageController $controller, $layout = 'website')
{
    // If we don't have logged user prepare referer params and redirect user to login page
    if (!logged_user() instanceof User) {
        $ref_params = array();
        foreach ($_GET as $k => $v) {
            $ref_params['ref_' . $k] = $v;
        }
        $controller->redirectTo('access', 'login', $ref_params);
    }
    // if
    $controller->setLayout($layout);
    $controller->addHelper('form', 'breadcrumbs', 'pageactions', 'tabbednavigation', 'company_website', 'project_website', 'textile');
}
開發者ID:pnagaraju25,項目名稱:fengoffice,代碼行數:22,代碼來源:functions.php


注:本文中的PageController::addHelper方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。