47 $form->override(
"template", $label =
"HTML",
new HTMLFieldRenderer(
$form));
49 $form->required(
"title");
50 $form->hide(
"content_type",
"ord_by",
"query_constraint",
"num_items",
"php_code_file",
"menu_id",
"menu_parameters",
"group_id");
51 $form->alias(
"css_class",
"CSS Class");
60 redirect(
"/admin/modules");
68 $title =
"Edit Module: {$module->title}";
69 $form->override(
"template", $label =
"HTML",
new HTMLFieldRenderer(
$form));
70 $form->button(
"Run the Module",
"/admin/module_preview?module_id=$module_id");
74 $title =
"Add a New HTML Module";
static using()
Import the datamodels, views and manifest for the specified component(s).
static usingFile()
Uses the specified framework file(s) from the framework directory.
static assertRole($role, $redirect="", $message="")
Assert that the user has one of the specified roles.
Defines the Module class.
$method
Pull out a simple reference to the request method.