Yii Framework Forum: How to Delete CRUD? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to Delete CRUD? Rate Topic: -----

#1 User is offline   freshuser 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 52
  • Joined: 19-June 12

Posted 19 June 2012 - 09:23 PM

Hi, i have use gii to generate CRUD for one of my db table but now the table is no longer in use so i would like to completely remove all CRUD related to that table. How do i do that?
0

#2 User is offline   CPzee 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 59
  • Joined: 11-November 11
  • Location:Sri Lanka

Posted 19 June 2012 - 10:01 PM

:D
1st go to the controller folder and delete the controller file that you have made to it.
then go to models folder and delete the model file that sreated from the table name you hv created.
after go to the views folder and delete the folder that made for the table of which you deleted.

Those are the all files and folders defaultly created by gii tool.
Found anything useful???? Pls click +
Ubuntu 12.04--PHP 5.3.10(Yii v1.1.13)
1

#3 User is offline   freshuser 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 52
  • Joined: 19-June 12

Posted 20 June 2012 - 12:49 AM

View PostCPzee, on 19 June 2012 - 10:01 PM, said:

:D
1st go to the controller folder and delete the controller file that you have made to it.
then go to models folder and delete the model file that sreated from the table name you hv created.
after go to the views folder and delete the folder that made for the table of which you deleted.

Those are the all files and folders defaultly created by gii tool.


Alright, thanks. IMO they should create a function for this in the CRUD generator :D
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users