add default account to frontend

This commit is contained in:
2015-10-26 07:49:10 +01:00
parent 0c92fdf167
commit 01da3c470c
45 changed files with 948 additions and 220 deletions

View File

@@ -3,6 +3,7 @@
namespace common\models;
use Yii;
use yii\db\ActiveRecord;
/**
* This is the model class for table "ticket".
@@ -140,7 +141,7 @@ class Ticket extends \common\models\BaseFitnessActiveRecord
$query->andWhere(['id_card' => $card->id_card]);
$query->andWhere( 'start <= :today' ,[ 'today' => $today] );
$query->andWhere( 'end >= :today' ,[ 'today' => $today] );
$query->orderBy([ "created_at" =>SORT_DESC] );
$result = $query->all();
return $result;