diff --git a/backend/views/layouts/menu_items.php b/backend/views/layouts/menu_items.php
index d768c62..d24da0e 100755
--- a/backend/views/layouts/menu_items.php
+++ b/backend/views/layouts/menu_items.php
@@ -31,6 +31,12 @@
'template' => '{label}{badge}',
],
[
+ 'label' => \Yii::t('core', 'Image manager'),
+ 'url' => [ 'imagemanager' ],
+ 'icon' => 'image',
+ 'template' => '{label}{badge}',
+ ],
+ [
'label' => \Yii::t('core', 'Pages'),
'url' => '#',
'template' => '{label}{badge}',
diff --git a/common/config/main.php b/common/config/main.php
index fe97efe..91ddfac 100644
--- a/common/config/main.php
+++ b/common/config/main.php
@@ -10,20 +10,22 @@
],
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'modules' => [
- 'imagemanager' => [
- 'class' => 'artbox\core\components\imagemanager\Module',
- 'canUploadImage' => true,
- 'canRemoveImage' => function () {
- return true;
- },
- 'setBlameableBehavior' => false,
- 'cssFiles' => [
- 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css',
- ],
- ],
+ # ctrl-c/ctrl-v из garant-service
+ 'imagemanager' => [
+ 'class' => 'backend\components\imagemanager\Module',
+ 'canUploadImage' => true,
+ 'canRemoveImage' => function () {
+ return true;
+ },
+ 'setBlameableBehavior' => false,
+ 'cssFiles' => [
+ 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css',
+ ],
+],
'rating' => [
'class' => Module::className()
- ]
+ ],
+
],
'components' => [
'cache' => [
diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php
index 5c706f5..fdd9459 100755
--- a/frontend/controllers/SiteController.php
+++ b/frontend/controllers/SiteController.php
@@ -302,10 +302,12 @@
'query' => Comment::find()
->where(['status' => true])
->andWhere(['entity' => Service::className()])
- ->andFilterWhere(['entity_id' => $service_id]),//'SELECT * FROM \"comment\" WHERE (\"status\"=TRUE) AND (\"entity\"=\'common\\models\\Service\')'
- 'pagination' => [
+ ->andFilterWhere(['entity_id' => $service_id])//'SELECT * FROM \"comment\" WHERE (\"status\"=TRUE) AND (\"entity\"=\'common\\models\\Service\')'
+ ->orderBy(['id'=>SORT_DESC]),
+ 'pagination' => [
'pageSize' => 10,
],
+
]);
$services = Service::find()->where(['status' => true])->andWhere(['parent_id' => null])->all();
--
libgit2 0.21.4