public function createForm($model, $formClass = null)
    {
        if (is_string($model)) {
            return $this->createFormInternal($model, new $model, $formClass);
        } else {
            return $this->createFormInternal(get_class($model), $model, $formClass);
        }
    }
public function createForm($model, $formClass = null)
    {
        if (is_string($model)) {
            return $this->createFormInternal($model, new $model, $formClass);
        } else {
            return $this->createFormInternal(get_class($model), $model, $formClass);
        }
    }
public function createForm ( $ model , $ formClass = null ) { if ( is_string ( $ model ) ) { return $ this -> createFormInternal ( $ model , new $ model , $ formClass ) ; } else { return $ this -> createFormInternal ( get_class ( $ model ) , $ model , $ formClass ) ; } }
Create form object

@param string|object $model model class or object
@param string $formClass form class, default use Phalcon\Forms\Form
@return Phalcon\Forms\Form
Create form object