Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function behaviors()
- {
- return [
- [
- 'class' => SluggableBehavior::className(),
- 'slugAttribute' => 'path',
- 'attribute' => 'title',
- 'ensureUnique' => true,
- 'immutable' => true,
- ],
- ];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement