BcBaserHelper::js PHP Method

js() public method

Javascript タグを出力する
public js ( string | array $url, boolean $inline = true, $options = [] ) : void
$url string | array Javascriptのパス(js フォルダからの相対パス)拡張子は省略可
$inline boolean コンテンツ内に Javascript を出力するかどうか(初期値 : true)
return void
    public function js($url, $inline = true, $options = [])
    {
        $options = array_merge(['inline' => $inline], $options);
        $result = $this->BcHtml->script($url, $options);
        if ($inline) {
            echo $result;
        }
    }