Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
profezz committed Feb 25, 2015
1 parent 234992c commit 602a0e0
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 34 deletions.
14 changes: 1 addition & 13 deletions common/config/main.php
Expand Up @@ -2,18 +2,6 @@
return [
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'components' => [
'cache' => [
'class' => 'yii\redis\Cache',
'keyPrefix' => 'nbp_',
'serializer' => array(
'igbinary_serialize',
'igbinary_unserialize'
),
'redis' => [
'hostname' => 'localhost',
'port' => 6350,
'database' => 5,
],
],

],
];
53 changes: 33 additions & 20 deletions environments/dev/common/config/main-local.php
Expand Up @@ -13,27 +13,40 @@
'schemaCacheDuration' => 300,
'queryCache' => true,
'queryCacheDuration' => 5,
],
'sphinx' => [
'class' => 'yii\sphinx\Connection',
'dsn' => 'mysql:host=localhost;port=9001;',
'username' => '',
'password' => '',
'schemaCache' => 'cache',
'enableSchemaCache' => true,
],
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'viewPath' => '@common/mail',
'useFileTransport' => false,
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'host',
'username' => 'username',
'password' => 'password',
'port' => '587',
'encryption' => 'tls'
],
'sphinx' => [
'class' => 'yii\sphinx\Connection',
'dsn' => 'mysql:host=localhost;port=9001;',
'username' => '',
'password' => '',
'schemaCache' => 'cache',
'enableSchemaCache' => true,
],
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'viewPath' => '@common/mail',
'useFileTransport' => false,
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'host',
'username' => 'username',
'password' => 'password',
'port' => '587',
'encryption' => 'tls'
],
],
'cache' => [
'class' => 'yii\redis\Cache',
'keyPrefix' => 'nbp_',
'serializer' => array(
'igbinary_serialize',
'igbinary_unserialize'
),
'redis' => [
'hostname' => 'localhost',
'port' => 6350,
'database' => 5,
],
],
],
];
13 changes: 13 additions & 0 deletions environments/prod/common/config/main-local.php
Expand Up @@ -34,5 +34,18 @@
'encryption' => 'tls'
],
],
'cache' => [
'class' => 'yii\redis\Cache',
'keyPrefix' => 'nbp_',
'serializer' => array(
'igbinary_serialize',
'igbinary_unserialize'
),
'redis' => [
'hostname' => 'localhost',
'port' => 6350,
'database' => 5,
],
],
],
];
Expand Up @@ -17,7 +17,7 @@
<p><strong><?= $ratingStat->rating ?></strong> (<span id="rating-stat-<?= $i ?>"><?= $ratingStat->count ?></span>)</p>
<?php $isRating = true; break; ?>
<?php endif; ?>
<? endforeach; ?>
<?php endforeach; ?>
<?php if(!$isRating): ?>
<p><strong><?= $i ?></strong> (<span id="rating-stat-<?= $i ?>">0</span>)</p>
<?php endif; ?>
Expand Down
Empty file modified init 100644 → 100755
Empty file.

0 comments on commit 602a0e0

Please sign in to comment.