Hey folks for my most wonderful Cabbit php framework i would like to create something like the rails script/generate scaffold command that is used in the terminal.
Now I am unsure of how complex this is or what software one would use to create such a command so i am looking for some pointers in the right direction.
My aim in the end would be that with a terminal command i can generate php files based on parameters.
For example
scaffold Post tile:string body:text
would create a model called posts, a cabbit_controller and 4 view files(CRUD).
So if anyone has some wee pointers to get me started it would be most welcome for now i am going to put it down to fairies and goblins.
Now I am unsure of how complex this is or what software one would use to create such a command so i am looking for some pointers in the right direction.
My aim in the end would be that with a terminal command i can generate php files based on parameters.
For example
scaffold Post tile:string body:text
would create a model called posts, a cabbit_controller and 4 view files(CRUD).
So if anyone has some wee pointers to get me started it would be most welcome for now i am going to put it down to fairies and goblins.