Help for display the Files(1) similar to Comments (0)

Questions and answers about change of functions, design, hosting etc.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

Help for display the Files(1) similar to Comments (0)

Postby 03016t0904 » 02 Jan 2019, 10:26

Hi Comments(0) shows the number of comments present.
I need help in displaying Files(1) currently it shows as Files.

if(param('enableCommentsForApartments', 1)){
$comment = null;

$items[Yii::t('module_comments','Comments').' ('.Comment::countForModel('Apartment', $data->id).')'] = array(
'content' => $this->renderPartial('//modules/apartments/views/_tab_comments', array(
'model' => $data,
), true),
'id' => 'tab_5',

if(isset($data->apDocuments) && count($data->apDocuments)){
$items[tc('Documents')] = array(
'content' => $this->renderPartial('//modules/apartments/views/__table_documents_view', array(
'apartment' => $data,
), true),
'id' => 'tab_8',

Posts: 10
Joined: 02 Aug 2018, 07:38
Reputation point: 0

Return to Questions and help for changes

Who is online

Users browsing this forum: No registered users and 2 guests