commandbox.system.modules_app.coldbox-commands.commands.coldbox.create

Class view

lucee.Component
    extended by commandbox.system.modules_app.coldbox-commands.commands.coldbox.create.view

Create a new view in an existing ColdBox application. Run this command in the root of your app for it to find the correct folder. By default, your new view will be created in /views but you can override that with the directory param. . {code:bash} coldbox create view myView {code}

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Method Summary
    any run(any name, [boolean helper='false'], [any directory='views'])
     
    Methods inherited from class lucee.Component
    None

    Method Detail

    run

    public any run(any name, [boolean helper='false'], [any directory='views'])

    Parameters:
    name - Name of the view to create without the .cfm.
    helper - Generate a helper file for this view
    directory - The base directory to create your view in and creates the directory if it does not exist.