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) {
|
if($comments) {
|
||||||
foreach ($comments as $comment) {
|
foreach ($comments as $comment) {
|
||||||
self::renderPartial('comments/comment.php',['comment'=>$comment]);
|
self::renderPartial('comments/comment.php',array('comment'=>$comment));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print 'Ваш комментарий может стать первым!';
|
print 'Ваш комментарий может стать первым!';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (App::$user) {
|
if (App::$user) {
|
||||||
self::renderPartial('comments/form.php',['parentId'=>$parentId, 'parentType' => $parentType]);
|
self::renderPartial('comments/form.php',array('parentId'=>$parentId, 'parentType' => $parentType));
|
||||||
} else {
|
} else {
|
||||||
self::renderPartial('comments/deny.php');
|
self::renderPartial('comments/deny.php');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue