概要
メーカー画像パスを取得します。
使い方
|
1 2 3 |
<ul> <?php echo o::getBrandImage($image, $thumb = false); ?> </ul> |
引数の内容
- $image : 画像名を指定します。
- $thumb : デフォルトは空でも可。trueを指定した場合はサムネイル画像のパスを返します。
返り値
string
例)resources/upload/brand/thumbnail/citizen.png”
使用例
|
1 |
<img src="<?php echo o::getBrandImage(c::getBrandImageByPid($this->p_id), true); ?>" alt="<?php echo c::getBrandNameByPid($this->p_id); ?>" /> |