could not create a model shown in the testdrive application using gii


I followed the introductionary tutorial for yii framework & went till "Generating the User Model".

As I followed the steps to generate the User Model Class I could preview the code for the model class but the file could not get created. Following error occurred -

Generating code using template "…/framework/gii/generators/model/templates/default"… generating models/User.php

   	Unable to write the file '../testdrive/protected/models/User.php'. done!

Can anyone help with this?

The models directory has following permissions - ’ drwxrwxr-x ’

Hi and welcome to the Yii forum

Before posting something as a bug, would be good to first check if there is already something similar on this forum.

Check this existing threat with the same problem - http://www.yiiframew…odel-generator/

I am very sorry for posting it in the bugs section. As I am new here I was unaware where to post this. Thank you very much for making me aware.