ver4/関数リファレンス/themeUrl
提供: baserCMS公式ガイド
[このコンテンツは内容調整中です]
説明
現在のテーマのURLを出力する。
使い方
<?php $this->BcBaser->themeUrl(); ?>
用例
基本
現在のテーマのURLを出力する。
コード
<?php $this->BcBaser->themeUrl(); ?>
出力
/theme/bc_sample/
応用
現在のテーマのURLを出力し、imgパスに利用する。
コード
<img src="<?php $this->BcBaser->themeUrl() ?>img/logo.png">
出力
<img src="/theme/bc_sample/img/logo.png">
類似の関数
- getThemeUrl - テーマのURLを取得する