Provides Smarty support for commonly used FuelPHP classes and methods.

 Methods

Sets up all of the functions this extension makes available.

__construct(\Smarty $smarty) 

Parameters

$smarty

Provide addess to Asset::add_path Usage: {form_val path='' type=''} Required: path

asset_add_path($params) 

Parameters

$params

Usage: {asset_css refs='' attrs=[] group='' raw=false} Required: refs

asset_css($params) : mixed

Parameters

$params

Returns

mixedstring or nothing if group is filled

Usage: {asset_find_file file='' type='' folder=''} Required: file and type

asset_find_file($params) : string

Parameters

$params

Returns

string

Usage: {asset_img refs='' attrs=[] group=''} Required: refs

asset_img($params) : mixed

Parameters

$params

Returns

mixedstring or nothing if group is filled

Usage: {asset_js refs='' attrs=[] group='' raw=false} Required: refs

asset_js($params) : mixed

Parameters

$params

Returns

mixedstring or nothing if group is filled

Render a group of assets Usage: {asset_render group='' raw=false}

asset_render($params) : string

Parameters

$params

Returns

string

Usage: {auth_check}

auth_check() : bool

Returns

bool

Usage: {auth_has_access cond=''} Required: cond

auth_has_access($params) : bool

Parameters

$params

Returns

bool

Usage: {config item='' default=''} Required: item

config_get($params) : mixed

Parameters

$params

Returns

mixedstring or array

Usage: {form attrs=[] hidden=[]}.

form($params, $content, $smarty, $repeat) : string

..{/form}

Parameters

$params

$content

$smarty

$repeat

Returns

string

Usage: {form_button field='' value='' attrs=[]} Required: field

form_button($params) : string

Parameters

$params

Returns

string

Usage: {form_checkbox field='' value='' checked=false attrs=[]} Required: field

form_checkbox($params) : string

Parameters

$params

Returns

string

Usage: {form_fieldset attrs=[] legend=''}.

form_fieldset($params, $content, $smarty, $repeat) : string

..{/form}

Parameters

$params

$content

$smarty

$repeat

Returns

string

Usage: {form_file field='' attrs=[]} Required: field

form_file($params) : string

Parameters

$params

Returns

string

Usage: {form_hidden field='' value='' attrs=[]} Required: field

form_hidden($params) : string

Parameters

$params

Returns

string

Usage: {form_input field='' value='' attrs=[]} Required: field

form_input($params) : string

Parameters

$params

Returns

string

Usage: {form_label text='' id='' attrs=[]} Required: text

form_label($params) : string

Parameters

$params

Returns

string

Usage: {form_password field='' value='' attrs=[]} Required: field

form_password($params) : string

Parameters

$params

Returns

string

Usage: {form_radio field='' value='' checked=false attrs=[]} Required: field

form_radio($params) : string

Parameters

$params

Returns

string

Usage: {form_reset field='' value='' attrs=[]} Required: field

form_reset($params) : string

Parameters

$params

Returns

string

Usage: {form_select field='' values='' options=[] attrs=[]} Required: field

form_select($params) : string

Parameters

$params

Returns

string

Usage: {form_submit field='' value='' attrs=[]} Required: field

form_submit($params) : string

Parameters

$params

Returns

string

Usage: {form_textarea field='' value='' attrs=[]} Required: field

form_textarea($params) : string

Parameters

$params

Returns

string

Provide access to Input::param Usage: {form_val index='' default=''}

form_val($params) : string

Parameters

$params

Returns

string

Return the current Fuel version

fuel_version() 

Usage: {html_anchor href='' text='' attrs='' secure=false} Required: href and text

html_anchor($params) : string

Parameters

$params

Returns

string

Provide access to Input::get Usage: {input_get index='' default=''}

input_get($params) : string

Parameters

$params

Returns

string

Provide access to Input::post Usage: {input_post index='' default=''}

input_post($params) : string

Parameters

$params

Returns

string

Usage: {lang line='id' params=[] default='default value' lang='en'} Required: line

lang_get($params) : mixed

Parameters

$params

Returns

mixedstring or false

Usage: {markdown}.

markdown_parse($params, $content, $smarty, $repeat) : string

..{/markdown}

Parameters

$params

$content

$smarty

$repeat

Returns

string

Usage: {session_get_flash var='' default='' expire=false} Required: var

session_get_flash($params) : mixed

Parameters

$params

Returns

mixed

Usage: {uri_segment segment=''} Required: segment

uri_segment($params) : mixed

Parameters

$params

Returns

mixedsegment string or false

Provides the url() functionality.

url($params) : string

Generates a full url (including domain and index.php).

Usage: {url uri='' params=[name=>$value]}

Parameters

$params

Returns

string