1
0

New Blogpost and made BlogPost/ControllerID non-required

This commit is contained in:
2014-11-06 10:12:41 +01:00
parent 371d881436
commit 5bd4ce2185
4 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ class BlogPost extends CActiveRecord
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(
array('Date, Title, Content, ControllerID, Visible, Enabled', 'required'),
array('Date, Title, Content, Visible, Enabled', 'required'),
array('Visible, Enabled', 'numerical', 'integerOnly'=>true),
array('ID, Date, Title, Content, ControllerID, Visible, Enabled', 'safe', 'on'=>'search'),