开发者

How to remove model using command line from CakePHP project

开发者 https://www.devze.com 2023-03-14 07:54 出处:网络
I have an annoying model that I accidentally created that keeps interfering with my cake schema run update command. how can I destroy this model?

I have an annoying model that I accidentally created that keeps interfering with my cake schema run update command. how can I destroy this model?

ok, I believe it is just easier to remove model file. I was just curious about cakephp-scripts implementation but it's not reall开发者_开发问答y necessary.


This should be located in

/install-dir
    /app
        /models
            model.php

For comment:

I know Unix.

cd /path/to/your/install-dir/app/models
rm model.php

Obviously you would replace that path with whatever is valid for your install. Depending on your permissions you may need to sudo rm that as well.

Also: http://www.westwind.com/reference/os-x/commandline/


From command line: DEL C:\path-to-your-project\app\models\hated-model.php

0

精彩评论

暂无评论...
验证码 换一张
取 消