by apocalip on Thu Feb 23, 2012 10:44 am
My Plugin does a few more things:
you can predefine the filename based on a specific need. For example, if you Controllers all have be named MyController.php you can define an argument to enter the controller's name and then use this argument in the filename: "$nameController.php" and then you can use this argument inside the template as well.
Additionally you can specify a predefined path for files. In case of the example above you could pre-define the path to be "Classes/Controllers/". So this file will be easily created inside that Folder by default.
i guess you could do all that inside your own custom commands, but my package bundles this behavior neatly into a plugin so anyone can just create some file-templates inside their packages.
greetings marc