64], [['url'], 'string', 'max' => 255], [['name'], 'unique'], [['url'], 'unique'] ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'name' => 'Name', 'url' => 'URL', 'hits' => 'Hits', 'created_at' => 'Created At', 'updated_at' => 'Updated At', ]; } /** * @inheritdoc */ public function behaviors() { return [ [ 'class' => TimestampBehavior::className(), 'value' => function () { return date('Y-m-d H:i:s'); }, ], ]; } }