TbForm::createForm PHP Method

createForm() public static method

Create the TbForm and assign the TbActiveForm with options as activeForm
public static createForm ( array $config, $parent, array $options = [], CModel $model = null ) : mixed
$config array
$parent
$options array
$model CModel
return mixed
    public static function createForm($config, $parent, $options = array(), $model = null)
    {
        $class = __CLASS__;
        $options['class'] = 'TbActiveForm';
        $form = new $class($config, $model, $parent);
        $form->activeForm = $options;
        return $form;
    }