\ContentCommentHelper

ContentComment Helper

Add your application-wide methods in the class below, your helpers will inherit them.

Summary

Methods
Properties
Constants
count()
index()
$helpers
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$helpers

$helpers : array

Other helpers used by FormHelper

Type

array

Methods

count()

count(array  $content, array  $attributes = array()) : string

コメント数表示

コメント数の表示HTMLを返します。
設定データ配列、コンテンツデータ配列を指定してください。
設定データ配列の['viewVarsKey']['useComment']を判断し、コンテンツデータ配列のContentCommentCnt.cntを表示します。

Sample code

template file(ctp file)
<?php echo $this->ContentComment->count($video); ?>

Parameters

array $content

Array of content data with ContentComment count.

array $attributes

Array of attributes and HTML arguments.

Returns

string —

HTML tags

index()

index(array  $content) : string

コメント一覧表示&コメント登録

Sample code

template file(ctp file)
<?php echo $this->ContentComment->index($video); ?>

Parameters

array $content

Array of content data with ContentComment count.

Returns

string —

HTML tags