BcBaserHelper::css PHP 메소드

css() 공개 메소드

《利用例》 $this->BcBaser->css('admin/import')
public css ( string $path, mixed $options = [] ) : void
$path string CSSファイルのパス(css フォルダからの相対パス)拡張子は省略可
$options mixed オプション (配列の場合) - `rel` : rel属性(初期値 : 'stylesheet') - `inline` : コンテンツ内にCSSを出力するかどうか(初期値 : true) ※ その他のパラメータについては、HtmlHelper::css() を参照。 ※ false を指定した場合、inline が false となる。
리턴 void
    public function css($path, $options = array())
    {
        if ($options === false) {
            $options['inline'] = false;
        }
        $options = array_merge(array('rel' => 'stylesheet', 'inline' => true), $options);
        $rel = $options['rel'];
        unset($options['rel']);
        $result = $this->BcHtml->css($path, $rel, $options);
        if ($options['inline']) {
            echo $result;
        }
    }