当前位置: 首页>>代码示例>>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;未经允许,请勿转载。