Skip to content
Mariusz Łączak edited this page Feb 15, 2014 · 4 revisions

Example usage

label($str, $space = ' ') Replace CamelCase and Underscores to spaces

You can use this function for generate labels from input's name, eg. replace repeatPassword to Repeat password:

<?php $field = 'repeatPassword';?>
<label for=<?php echo $field?>><?php echo __(Tool::label($label))?>:</label>
Also available in volt engine
{% set field = 'repeatPassword' %}
<label for={{ field }}>{{ __(field|label) }}:</label>

pagination($url, $page, $hook = '', $class = 'pagination', $count_out = 3, $count_in = 5) Prepare HTML pagination

First Previous 1 2 3 ... 22 23 24 25 26 [27] 28 29 30 31 32 ... 48 49 50 Next Last