個人用ツール

「関数リファレンス/getHtmlById」の版間の差分

提供: baserCMS公式ガイド

移動: 案内, 検索
(ページの作成:「## 説明 記事中のタグで指定した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の内容

用例

基本

コード

 

出力

応用

コード

出力

変更履歴

ソースファイル

関連資料

類似の関数