Skip to Content search facebook instagram pinterest twitter youtube

Protected properties

$controller_name

This is the slug of the controller, e.g. blog_post, must match the registration

$friendly_name

This is the friendly name of the controller. In 99% of cases, should be the plural form of the controller name

$navigation_name

The friendly name used in the sidebar navigation. Optional. If not specified defaults to matching the friendly name.

$table_name

This is the name of the table to get data from. Optional. If not specified, this will be the plural form of the $controller_name slug.

$add_defaults

Default values used for adding a record.

$main_order

Order for records in the main list. Default 'item.name'

$main_where

Additional WHERE clauses for the main list.

$main_actions

Additional actions for the main list. Value is button label and key is the url. Include a %% in the url for the record id. There is one default action, Delete.

$main_add

Whether the "Add" link should be shown on the main list. Defaults to true.

$export_modifiers

Modifiers applied to data prior to export. Should be a class which extends ColModifier. Can be an object instance or string of a class name

$action_log

True if this controller should do action logging. Defaults to true

$refine_bar

Instance of the RefineBar class as used in the main record list.

$records_per_page

The number of records to show per page. Defaults to 50

$main_modes

Different modes available for the main view. By default, there is only one mode list, but some modules have others such as media repository which also has thumb.

$duplicate_enabled

Does this module support record duplication. Enabling this will add a duplicate link to the record edit form in admin