Difference between #1 and #2 of
How to create a Widget - Recent Comments widget

Revision #2 has been created by Nisanth thulasi on Jun 11, 2014, 5:25:30 PM with the memo:

comments changed to $comments
« previous (#1) next (#3) »

Changes

Title unchanged

How to create a Widget - Recent Comments widget

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

Widgets, comments, theming

Content changed

[...]
```php
<ul>
<?php
$comments = $this->getComments();

foreach(
$comments as $comment)
{
echo "<li> {$comment->fieldName}</li>";
}
?>
</ul>
[...]
5 0
6 followers
Viewed: 44 023 times
Version: 1.1
Category: How-tos
Written by: Nisanth thulasi
Last updated by: samdark
Created on: Jun 11, 2014
Last updated: 5 years ago
Update Article

Revisions

View all history