aguskianto 0 Posted April 5, 2013 Report 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? Quote Link to post Share on other sites
aguskianto 0 Posted April 5, 2013 Author Report Share Posted April 5, 2013 Is there a way to attach image to this thread? It'll clearer that way. Quote Link to post Share on other sites
Daniele 1 Posted April 5, 2013 Report 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! Quote Link to post Share on other sites
aguskianto 0 Posted April 8, 2013 Author Report Share Posted April 8, 2013 ah..., yes. It works. Thank you so much Daniele. Quote Link to post Share on other sites
javebratt 0 Posted June 28, 2013 Report 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 Quote Link to post Share on other sites
Larry 428 Posted June 29, 2013 Report Share Posted June 29, 2013 Sorry about that, Jorge! Quote Link to post Share on other sites
javebratt 0 Posted July 10, 2013 Report 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 :-) Quote Link to post Share on other sites
Larry 428 Posted July 10, 2013 Report Share Posted July 10, 2013 Well, knowing how to make use of the Yii class reference is very important. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.