FIX array
This commit is contained in:
parent
62256f60cc
commit
f493cc58be
|
|
@ -6,14 +6,14 @@ $comments = Comment::model()->getAll(array('where'=>'`parentType`="'.$parentType
|
|||
|
||||
if($comments) {
|
||||
foreach ($comments as $comment) {
|
||||
self::renderPartial('comments/comment.php',['comment'=>$comment]);
|
||||
self::renderPartial('comments/comment.php',array('comment'=>$comment));
|
||||
}
|
||||
} else {
|
||||
print 'Ваш комментарий может стать первым!';
|
||||
}
|
||||
|
||||
if (App::$user) {
|
||||
self::renderPartial('comments/form.php',['parentId'=>$parentId, 'parentType' => $parentType]);
|
||||
self::renderPartial('comments/form.php',array('parentId'=>$parentId, 'parentType' => $parentType));
|
||||
} else {
|
||||
self::renderPartial('comments/deny.php');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue