public function renderUntil($field_name, $showFormEnd = true, $showFields = true)
    {
        $fields = $this->getUnrenderedFields();

        $i = 1;
        foreach ($fields as $key => $value) {
            if ($value->getRealName() == $field_name) {
                break;
            }
            $i++;
        }

        $fields = array_slice($fields, 0, $i, true);

        return $this->render([], $fields, false, $showFields, $showFormEnd);
    }
public function renderUntil($field_name, $showFormEnd = true, $showFields = true)
    {
        $fields = $this->getUnrenderedFields();

        $i = 1;
        foreach ($fields as $key => $value) {
            if ($value->getRealName() == $field_name) {
                break;
            }
            $i++;
        }

        $fields = array_slice($fields, 0, $i, true);

        return $this->render([], $fields, false, $showFields, $showFormEnd);
    }
public function renderUntil ( $ field_name , $ showFormEnd = true , $ showFields = true ) { $ fields = $ this -> getUnrenderedFields ( ) ; $ i = 1 ; foreach ( $ fields as $ key => $ value ) { if ( $ value -> getRealName ( ) == $ field_name ) { break ; } $ i ++ ; } $ fields = array_slice ( $ fields , 0 , $ i , true ) ; return $ this -> render ( [ ] , $ fields , false , $ showFields , $ showFormEnd ) ; }
Renders the rest of the form up until the specified field name

@param string $field_name
@param bool   $showFormEnd
@param bool   $showFields
@return string
Renders the rest of the form up until the specified field name