_init() protected method

Object initializer. Adds a content handler for the wrap key in the field() method, which converts an array of properties to an attribute string.
protected _init ( ) : void
return void
Example #1
0
 protected function _init()
 {
     parent::_init();
     $this->config(array('templates' => array('field' => '<div class="control-group">{:label}<div class="controls">{:input}</div></div>', 'label' => '<label for="{:id}" class="control-label"{:options}>{:title}</label>', 'text' => '<input type="text" name="{:name}"{:options} placeholder="{:name}" />', 'textNoPlaceholder' => '<input type="text" name="{:name}"{:options}  />')));
 }