46 $table->column(
"Role",
"<a href='role_form?role_id={role_id}'>{role}</a>",
true,
'width: 20%; vertical-align: top')
47 ->column(
"Name & Description",
"<strong>{name}</strong><br/>{description}",
true,
'width: 40%')
48 ->column(
"Home Page",
"{home_page}",
true,
"width: 40%; vertical-align: top");
52 $table->emptyMessage =
"No Site User Roles have been defined.";
61 <button
class=
"button" onclick=
"go('/admin/role_form')">Add New User Role</button>
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.