public static function createForm($config, $model, $options = array())
{
$class = __CLASS__;
if (empty($options)) {
$options = array('class' => 'TbActiveForm', 'htmlOptions' => array('class' => 'well'), 'type' => 'inline');
}
$form = new $class($config, $model);
$form->activeForm = $options;
return $form;
}