aguskianto Posted April 5, 2013 Share Posted April 5, 2013 Dear all, I follow the yii book until chapter 5. I got no problem until I reach page 94 and I add this code: # protected/models/Page.php::rules() array('date_published', 'date', 'format'=>'YYYY-MM-DD'), I got error while opening create Page: Please fix the following input errors: The format of Date Published is invalid. When I type 2013-04-05. Is there something wrong? Link to comment Share on other sites More sharing options...
aguskianto Posted April 5, 2013 Author Share Posted April 5, 2013 Is there a way to attach image to this thread? It'll clearer that way. Link to comment Share on other sites More sharing options...
Daniele Posted April 5, 2013 Share Posted April 5, 2013 Hi aguskianto, I think that the correct format is "yyyy-MM-dd" (example: 2013-04-04), let me know if works! Link to comment Share on other sites More sharing options...
aguskianto Posted April 8, 2013 Author Share Posted April 8, 2013 ah..., yes. It works. Thank you so much Daniele. Link to comment Share on other sites More sharing options...
javebratt Posted June 28, 2013 Share Posted June 28, 2013 Yeah, I just saw the book error and came here to post it, spent a good 10 minutes banging my head in the desk trying to figure it out till I read the Yii Documentation and saw it was dd instead of DD Link to comment Share on other sites More sharing options...
Larry Posted June 29, 2013 Share Posted June 29, 2013 Sorry about that, Jorge! Link to comment Share on other sites More sharing options...
javebratt Posted July 10, 2013 Share Posted July 10, 2013 No need to apologize, It actually helped me, I learned how to search the yii class reference, so it turned up to be helpfull :-) Link to comment Share on other sites More sharing options...
Larry Posted July 10, 2013 Share Posted July 10, 2013 Well, knowing how to make use of the Yii class reference is very important. Link to comment Share on other sites More sharing options...
Recommended Posts