[Top]
Fins
Fins.ScaffoldController
|
Class Fins.ScaffoldController
- Description
-
A controller that impliments CRUD functionality
for a given Model component.
-
- Inherit
DocController
-
inherit Fins.DocController : DocController
-
- Variable
model_component
-
string Fins.ScaffoldController.model_component
- Description
-
this should be the name of your object type and is used to link this
controller to the model. For auto-configured models, this is normally
a capitalized singular version of your table. For example, if your
table is called "users", this would be "User".
- Variable
model_id
-
string Fins.ScaffoldController.model_id
- Description
-
if your application contains multiple model definitions, this should be the
model "id" for the definition containing the component. the default value
selects the default model definition.
- Variable
list_template_string
-
string Fins.ScaffoldController.list_template_string
- Description
-
Contains default contents of the template used for displaying a list of items
in this scaffolding. You may override the use of this string by creating
a template file. Store the template file in your templates directory under
controller/path/list.phtml. For example, if your scaffold controller
is mounted at /widgets/, you would store the overriding template file in
templates/widgets/list.phtml.
- Variable
display_template_string
-
string Fins.ScaffoldController.display_template_string
- Description
-
Contains default contents of the template used for displaying items
in this scaffolding. You may override the use of this string by creating
a template file. Store the template file in your templates directory under
controller/path/display.phtml. For example, if your scaffold controller
is mounted at /widgets/, you would store the overriding template file in
templates/widgets/display.phtml.
- Variable
update_template_string
-
string Fins.ScaffoldController.update_template_string
- Description
-
Contains default contents of the template used for editing items
in this scaffolding. You may override the use of this string by creating
a template file. Store the template file in your templates directory under
controller/path/update.phtml. For example, if your scaffold controller
is mounted at /widgets/, you would store the overriding template file in
templates/widgets/update.phtml.
- Variable
new_template_string
-
string Fins.ScaffoldController.new_template_string
- Description
-
Contains default contents of the template used for creating items
in this scaffolding. You may override the use of this string by creating
a template file. Store the template file in your templates directory under
controller/path/new.phtml. For example, if your scaffold controller
is mounted at /widgets/, you would store the overriding template file in
templates/widgets/new.phtml.
- Variable
delete_template_string
-
string Fins.ScaffoldController.delete_template_string
- Description
-
Contains default contents of the template used to confirm deletion
in this scaffolding. You may override the use of this string by creating
a template file. Store the template file in your templates directory under
controller/path/delete.phtml. For example, if your scaffold controller
is mounted at /widgets/, you would store the overriding template file in
templates/widgets/delete.phtml.
|