add product category crud + model ( termék kategória )

This commit is contained in:
2015-09-21 10:35:15 +02:00
parent 8890727862
commit 6b81ced4ba
13 changed files with 537 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace common\models;
use yii\helpers\ArrayHelper;
use yii\behaviors\TimestampBehavior;
class BaseFitnessActiveRecord extends \yii\db\ActiveRecord{
/**
* @inheritdoc
*/
public function behaviors()
{
return ArrayHelper::merge( [
[
'class' => TimestampBehavior::className(),
'value' => function(){ return date('Y-m-d H:i:s' ); }
]
], parent::behaviors());
}
}