add product category crud + model ( termék kategória )
This commit is contained in:
21
common/models/BaseFitnessActiveRecord.php
Normal file
21
common/models/BaseFitnessActiveRecord.php
Normal 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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user