public static function form($slug, $name = '', array $attributes = []){
        $class_name = get_called_class();
        /** @var AjaxBaseForm $instance */
        $instance = $class_name::get_instance();
        $instance->form_open($attributes);
        $args = $instance->form_arguments();
        $instance->load_template($slug, $name, $args);
        $instance->form_close();
    }
public static function form($slug, $name = '', array $attributes = []){
        $class_name = get_called_class();
        /** @var AjaxBaseForm $instance */
        $instance = $class_name::get_instance();
        $instance->form_open($attributes);
        $args = $instance->form_arguments();
        $instance->load_template($slug, $name, $args);
        $instance->form_close();
    }
public static function form ( $ slug , $ name = '' , array $ attributes = [ ] ) { $ class_name = get_called_class ( ) ; /** @var AjaxBaseForm $instance */ $ instance = $ class_name :: get_instance ( ) ; $ instance -> form_open ( $ attributes ) ; $ args = $ instance -> form_arguments ( ) ; $ instance -> load_template ( $ slug , $ name , $ args ) ; $ instance -> form_close ( ) ; }
Display form control

@param string $slug
@param string $name
@param array $attributes
Display form control