Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. by model :
- [['attribute', 'second_attribute'], 'default', 'value' => 'something_here'],
- 2. load attributes in model
- $model = new Post();
- $model->loadDefaultValues();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement