![]() |
Why CI doesn't have generators ? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Why CI doesn't have generators ? (/showthread.php?tid=8575) Pages:
1
2
|
Why CI doesn't have generators ? - El Forum - 05-22-2008 [eluser]jinit13[/eluser] Hi, I'm coming from Rails background, and I'm wondering why there's no generators in CI ? Example: Code: php script/generate Controller users index register login Why CI doesn't have generators ? - El Forum - 05-22-2008 [eluser]richthegeek[/eluser] mostly because creating said files takes 20 seconds and creating a generator would take much longer. don't be so lazy. Why CI doesn't have generators ? - El Forum - 05-22-2008 [eluser]jinit13[/eluser] Well it's pretty helpful as it let's you forget all about naming conventions and creates almost everything for you! Thanks. Why CI doesn't have generators ? - El Forum - 05-22-2008 [eluser]adwin[/eluser] well .. actually you just need to create a file and then type: Code: class Xyz extends Controller{ ![]() so I dont think we need the generator. But I think ... it would be good idea to create generator for model ![]() ![]() Why CI doesn't have generators ? - El Forum - 05-22-2008 [eluser]jinit13[/eluser] Well parent not parrent LOL I used Controller in the example, but the generator is supposed to be used for Controllers, Models, .. etc Why CI doesn't have generators ? - El Forum - 05-23-2008 [eluser]Jamie Rumbelow[/eluser] I'm sure you could make a few batch files that do the job. If you don't I might give it a go later. Why CI doesn't have generators ? - El Forum - 05-23-2008 [eluser]xwero[/eluser] Michael Wales did something quite a while ago but i can't find it at the moment, maybe you have better search capacities. Why CI doesn't have generators ? - El Forum - 05-23-2008 [eluser]Jamie Rumbelow[/eluser] No, Michael Wales lost all his old blog posts when he changed his blog. Why CI doesn't have generators ? - El Forum - 05-23-2008 [eluser]Michael Wales[/eluser] Yeah I cranked a little one out but with the switch of hosts my blog and all it's data went down. To be honest, I don't intend on recreating it - as others have mentioned it is virtually useless. To create a controller, model, library, view, anything it's only 2-3 lines of code. I find "snippets" for my favorite text editor to be much more helpful. Why CI doesn't have generators ? - El Forum - 05-23-2008 [eluser]xwero[/eluser] Look at that, his blog changed ![]() Useless for some is useful for others. You know there are people that think CI is useless ![]() But i agree creating a file and generate the base code using shortcuts is pushing in 6 keys at most a generator can't beat that. |