Create a view file in the Trax work area if the required file does not yet exist. Generate the view file contents by customizing the view template file with information about the controller and view names.
Example: php script/generate.php controllerSomeName will generate:
a file
app/controllers/some_name_controller.php
containing the class definition classSomeNameController extends
ApplicationController {}
a file
app/helpers/some_name_helper.php
a directory
app/views/some_name
Optionally, one or more views can be appended to the command: php script/generate.php controllerSomeName view1 view2 which will additionally generate files: app/views/some_name/view1.phtml app/views/some_name/view2.phtml
Name in CamelCase of the controller to generate. The value may include '/' which will cause creation of subdirectories indicated to hold the controller and view files.
Example: php script/generate.php modelSomeName will generate a file app/models/some_name.php containing the class definition classSomeNameextends
ActiveRecord {}