我正在使用Fuel 1.2.1
我使用scaffold使用以下命令创建我的CRUD:
oil generate scaffold news title:string body:text
是否有命令销毁它,就像在Rails中一样?
编辑:破坏参数会很好
oil destroy scaffold news
答案 0 :(得分:2)
该命令不存在。你必须手动完成。
DELETE:
APPPATH/classes/model/news.php
APPPATH/migrations/xxx_create_news.php
APPPATH/classes/controller/news.php
APPPATH/views/news/index.php
APPPATH/views/news/view.php
APPPATH/views/news/create.php
APPPATH/views/news/edit.php
APPPATH/views/news/_form.php