関数リファレンス/subMenu
提供: baserCMS公式ガイド
目次
説明
サブメニューを出力
使い方
$this->BcBaser->submenu();
パラメータ
戻り値
- (string)
- divタグ
用例
基本
コード
<?php $this->BcBaser->submenu(); ?>
出力
<img src="/app/webroot/common/img/logo.png">
応用
コード
<?php $this->BcBaser->getImg("/common/img/logo.png", array('alt'=>'この画像の代替テキストです', 'class'=>'testImg', 'width'=>'200px', 'height'=>'160px') ); ?>
出力
<div class="sub-menu-contents"> <h2>ログインメニュー</h2> <ul> <li><a href="/admin/users/login" target="_blank">管理者ログイン</a></li> </ul> </div>