当前位置: 首页>>代码示例>>PHP>>正文


PHP AppHelper::beforeLayout方法代码示例

本文整理汇总了PHP中AppHelper::beforeLayout方法的典型用法代码示例。如果您正苦于以下问题:PHP AppHelper::beforeLayout方法的具体用法?PHP AppHelper::beforeLayout怎么用?PHP AppHelper::beforeLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AppHelper的用法示例。


在下文中一共展示了AppHelper::beforeLayout方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: beforeLayout

 public function beforeLayout($viewFile)
 {
     parent::beforeLayout($viewFile);
     $js = array('/highcharts/js/highcharts', '/highcharts/js/highcharts-more');
     $theme = $this->_getTheme($this->chart_name);
     $exportingEnabled = $this->_checkExporting($this->chart_name);
     $options3dEnabled = $this->_checkOptions3d($this->chart_name);
     $drillDownEnabled = $this->_checkDrillDown($this->chart_name);
     if ($exportingEnabled) {
         $js[] = '/highcharts/js/modules/exporting';
     }
     if ($options3dEnabled) {
         $js[] = '/highcharts/js/highcharts-3d.js';
     }
     if ($drillDownEnabled) {
         array_push($js, '/highcharts/js/modules/drilldown');
     }
     switch ($theme) {
         case 'gray':
         case 'grid':
         case 'dark-blue':
         case 'dark-green':
         case 'skies':
             $js[] = '/highcharts/js/themes/' . $theme;
             break;
         default:
             // $js[] = '/highcharts/js/themes/highroller';
             break;
     }
     $this->Html->css('highcharts/css/highroller');
     $this->Html->script($js, false);
     return true;
 }
开发者ID:Mortex68,项目名称:ExtazCMS,代码行数:33,代码来源:HighchartsHelper.php

示例2: beforeLayout

 public function beforeLayout($viewFile)
 {
     parent::beforeLayout($viewFile);
     $js = array('/high_charts/js/highcharts');
     $theme = $this->_getTheme($this->chart_name);
     $exportingEnabled = $this->_checkExporting($this->chart_name);
     if ($exportingEnabled) {
         $js[] = '/high_charts/js/modules/exporting';
     }
     switch ($theme) {
         case 'gray':
         case 'grid':
         case 'dark-blue':
         case 'dark-green':
         case 'skies':
             $js[] = '/high_charts/js/themes/' . $theme;
             break;
         default:
             // $js[] = '/high_charts/js/themes/highroller';
             break;
     }
     $this->Html->css('high_charts/css/highroller');
     $this->Html->script($js, FALSE);
     return true;
 }
开发者ID:galtech,项目名称:cakephp-highcharts-plugin,代码行数:25,代码来源:HighChartsHelper.php

示例3: beforeLayout

    /**
     * Add styles and scripts to the page
     * 
     * @param String $viewFile 
     */
    public function beforeLayout($viewFile)
    {
        parent::beforeLayout($viewFile);
        echo $this->Html->script("shadowbox", array('inline' => false));
        echo $this->Html->css("shadowbox", array('inline' => false));
        echo $this->Html->scriptBlock('
		$(function() {
		Shadowbox.init({
			handleOversize: "drag",
			modal: true
		});});', array('inline' => false));
    }
开发者ID:jam2z9,项目名称:Projects,代码行数:17,代码来源:FileHelper.php

示例4: beforeLayout

 public function beforeLayout($viewFile)
 {
     parent::beforeLayout($viewFile);
     $js = array('/plugins/high-charts/js/highcharts', '/plugins/high-charts/js/modules/exporting');
     $theme = $this->_getTheme($this->chart_name);
     switch ($theme) {
         case 'gray':
         case 'grid':
         case 'dark-blue':
         case 'dark-green':
         case 'skies':
             $js[] = '/plugins/high-charts/js/themes/' . $theme;
             break;
         default:
             // $js[] = '/high_charts/js/themes/highroller';
             break;
     }
     $this->Html->css('/plugins/high-charts/css/highroller');
     $this->Html->script($js, array('block' => 'customScript'));
     return true;
 }
开发者ID:riverans,项目名称:manage-expenses,代码行数:21,代码来源:HighChartsHelper.php

示例5: beforeLayout

 public function beforeLayout($layoutFile)
 {
     parent::beforeLayout($layoutFile);
     $this->Html->script('Sifter.sifter', array('inline' => false));
 }
开发者ID:dogmatic69,项目名称:cakephp-sifter,代码行数:5,代码来源:SifterHelper.php


注:本文中的AppHelper::beforeLayout方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。