Skip to content
liferealized edited this page Sep 14, 2010 · 3 revisions

The scaffold() init method is use to “setup” a controller with the Super Scaffold functionality. This methods should be called first within your controllers init() method.

modelName

The name of the model to use for the controller.

label

Lets you specify a default label for the controller. This is used in page headings and in breadcrumb links.

actions

A list of actions that can be viewed for this controller. Defaults to list, search, create, update, delete, view and nested. Please note that create and update are translated into new and edit also.

formats

A list of the formats that the controller can provide. Deafults to html, xml, json, csv, and xls. Internally, Super Scaffold uses the provides plugin to handle this functionality.