\BackToHelper

BackTo Helper

Add your application-wide methods in the class below, your helpers will inherit them.

Summary

Methods
Properties
Constants
button()
linkButton()
pageLinkButton()
indexLinkButton()
$helpers
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$helpers

$helpers : array

Other helpers used by HtmlHelper

Type

array

Methods

button()

button(string  $title, string  $url, array  $options = array()) : string

Creates a `<button>` tag. The type attribute defaults to `type="submit"` You can change it to a different value by using `$options['type']`.

Options:

escape - HTML entity encode the $title of the button. Defaults to false.

Original options

url - The url in onclick attribute icon - Icon to be displayed on the button (only to specify the last keyword of gliphs of bootstrap components) iconSize - '' is the default size : lg / sm / xs

Parameters

string $title

The button's caption. Not automatically HTML encoded

string $url

The url in onclick attribute

array $options

Array of options and HTML attributes.

Returns

string —

A HTML button tag.

linkButton()

linkButton(string  $title, mixed  $url, array  $options = array()) : string

backToPageButton Go back to the page where the plugin has been first displayed #### Original options `icon` - Icon to be displayed on the button (only to specify the last keyword of gliphs of bootstrap components) `iconSize` - '' is the default size : lg / sm / xs

Parameters

string $title

Title string to be displayed on the button

mixed $url

Link url

array $options

Array of options and HTML arguments.

Returns

string

pageLinkButton()

pageLinkButton(string  $title, array  $options = array()) : string

backToPageButton Go back to the page where the plugin has been first displayed

Parameters

string $title

Title string to be displayed on the button

array $options

Array of options and HTML arguments.

Returns

string

indexLinkButton()

indexLinkButton(string  $title, string  $defaultField = 'default_action', array  $options = array()) : string

backToPageButton Go back to the page where the plugin has been first displayed

Parameters

string $title

Title string to be displayed on the button

string $defaultField

Plugin table's default action field. The value is "default_action" or "default_setting_action"

array $options

Array of options and HTML attributes.

Returns

string