Class CTForm
Html form
Direct known subclasses
Methods summary
public
|
#
__construct( string $name, string $validator, string $help_url = null, string/array $controlWidth = array('sm' => '6:6', 'md' => '5:7', 'lg' => '4:6') )
Constructor labelWidth and fieldWidth are column widths for bootstraps 12 column grid maybe a number (used for md) or an array ('sm' => '6:6', 'md' => '5:7', 'lg' => '4:6') values without : are used for labels, fieldwidth will be calculated |
public
|
#
getBootstrapClasses( string/array $controlWidth )
create col-sm-x, col-md-x, col-lg-x bootstrap classes needed for form input styling returns array [label, field, fieldOffset, fieldWithOffset] if string is given it will be converted to array('md'=>string), if : is missed, value will used for label and field will be calculated |
public
object,
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|