Hesam Posted April 20, 2013 Share Posted April 20, 2013 Hi Larry, In working with model chapters, you mentioned: In Yii, you can use the CFileHelper class. IfFileinfo is available, CFileHelper will use that extension. If not, CFileHelperwill use the mime_content_type() function or just the file’s extension (as theworst case scenario) I was using latest version of WAMP and file_info extenstion was disabled. And Yii couldn't handle it correctly and throw exception that file_info is not available. So, file_info should be available, otherwise, Yii won't check the extension only and model rules wont pass. Link to comment Share on other sites More sharing options...
Larry Posted April 26, 2013 Share Posted April 26, 2013 Thanks for letting me know about that. I'll adjust the book accordingly. Link to comment Share on other sites More sharing options...
Recommended Posts