「ver4/関数リファレンス/getHtmlById」の版間の差分
提供: baserCMS公式ガイド
細 (1版 : 関数リファレンス→ver4) |
Katokaisya (トーク | 投稿記録) |
||
行7: | 行7: | ||
## 使い方 | ## 使い方 | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
− | $this->Blog->getHtmlById($post, $id); | + | $this->Blog->getHtmlById( [$post] , $id); |
</syntaxhighlight> | </syntaxhighlight> | ||
2016年11月4日 (金) 20:50時点における最新版
[このコンテンツは内容調整中です]
目次
説明
記事中のタグで指定したIDの内容を取得する
使い方
$this->Blog->getHtmlById( [$post] , $id);
パラメータ
- (array) $post ブログ記事
- (string) $id 取得したいデータが属しているタグのID属性
戻り値
(string) 指定したIDの内容