「関数リファレンス/getHtmlById」の版間の差分
提供: baserCMS公式ガイド
Tomohiro Abe (トーク | 投稿記録) (ページの作成:「## 説明 記事中のタグで指定したIDの内容を取得する ## 使い方 <syntaxhighlight lang="php"> $this->Blog->getHtmlById(); </syntaxhighlight> ## パ...」) |
([使い方]でのパラメーター指定が抜けていたのを記述追加した) |
||
行5: | 行5: | ||
## 使い方 | ## 使い方 | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
− | $this->Blog->getHtmlById(); | + | $this->Blog->getHtmlById($post, $id); |
</syntaxhighlight> | </syntaxhighlight> | ||
2016年7月20日 (水) 10:49時点における最新版
目次
説明
記事中のタグで指定したIDの内容を取得する
使い方
$this->Blog->getHtmlById($post, $id);
パラメータ
- (array) $post ブログ記事
- (string) $id 取得したいデータが属しているタグのID属性
戻り値
(string) 指定したIDの内容