BcBaserHelper::getWidgetArea PHP Method

getWidgetArea() public method

ウィジェットエリアを取得する
public getWidgetArea ( integer $no = null, array $options = [] ) : string
$no integer ウィジェットエリアNO(初期値 : null)※ 省略した場合は、コンテンツごとに管理システムにて設定されているウィジェットエリアを出力する
$options array オプション(初期値 : array()) - `loadHelpers` : ヘルパーを読み込むかどうか(初期値 : false) todo loadHelpersが利用されていないのをなんとかする - `subDir` : テンプレートの配置場所についてプレフィックスに応じたサブフォルダを利用するかどうか(初期値 : true)
return string
    public function getWidgetArea($no = null, $options = array())
    {
        $options = array_merge(array('loadHelpers' => false, 'subDir' => true), $options);
        $subDir = $options['subDir'];
        if (!$no && isset($this->_View->viewVars['widgetArea'])) {
            $no = $this->_View->viewVars['widgetArea'];
        }
        if ($no) {
            return $this->getElement('widget_area', array('no' => $no, 'subDir' => $subDir), array('subDir' => $subDir));
        }
        return '';
    }