KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How do you set a default value for a field in a model? EDIT: I have tried the method using _schema as suggested, but the default value is not being used. public $_schema = array( 'newsletter' => array( 'default' => 1 ), );
Tags (comma-separated)
Save Edits
Cancel