Constants summary
string |
METHOD_GET
Form http submitting method (GET ).
Form http submitting method (GET ).
|
|
string |
METHOD_POST
Form http submitting method (POST ).
Form http submitting method (POST ).
|
|
string |
ENCTYPE_URLENCODED
Form enctype attribute value application/x-www-form-urlencoded ,
By submitting - all form values will be encoded
to key1=value1&key2=value2&... string.
This enctype type is used for all \MvcCore\Ext\Form instances by default.
Form enctype attribute value application/x-www-form-urlencoded ,
By submitting - all form values will be encoded
to key1=value1&key2=value2&... string.
This enctype type is used for all \MvcCore\Ext\Form instances by default.
|
#
'application/x-www-form-urlencoded'
|
string |
ENCTYPE_MULTIPART
Form enctype attribute value multipart/form-data ,
By submitting - data will not be encoded to URL string form.
This value is required when you are using forms that have a file upload control.
Form enctype attribute value multipart/form-data ,
By submitting - data will not be encoded to URL string form.
This value is required when you are using forms that have a file upload control.
|
|
string |
ENCTYPE_PLAINTEXT
Form enctype attribute value application/x-www-form-urlencoded ,
By submitting - spaces will be converted to + symbols,
but no other special characters will be encoded.
Form enctype attribute value application/x-www-form-urlencoded ,
By submitting - spaces will be converted to + symbols,
but no other special characters will be encoded.
|
|
string |
HTML_IDS_DELIMITER
Html id attributes delimiter,
used for form controls to complete
it's ids as <form-id>_<control-name> .
Html id attributes delimiter,
used for form controls to complete
it's ids as <form-id>_<control-name> .
|
|
integer |
RESULT_ERRORS
Form submit result state (0 - error happened).
Submit was not successful, there was an error or errors.
Form submit result state (0 - error happened).
Submit was not successful, there was an error or errors.
|
|
integer |
RESULT_SUCCESS
Form submit result state (1 - everything OK).
Submit was successful, no error happened.
User could be redirected to success url.
Form submit result state (1 - everything OK).
Submit was successful, no error happened.
User could be redirected to success url.
|
|
integer |
RESULT_PREV_PAGE
Form submit result state (2 - everything OK, redirect user to previous step url).
Submit was successful, no error happened and one of submitting
button is control to indicate that user could be redirected
to previous step URL in multiple forms wizard (typically e-shop ordering).
Form submit result state (2 - everything OK, redirect user to previous step url).
Submit was successful, no error happened and one of submitting
button is control to indicate that user could be redirected
to previous step URL in multiple forms wizard (typically e-shop ordering).
|
|
integer |
RESULT_NEXT_PAGE
Form submit result state (3 - everything OK, redirect user to next step url).
Submit was successful, no error happened and one of submitting
button is control to indicate that user could be redirected
to next step URL in multiple forms wizard (typically e-shop ordering).
Form submit result state (3 - everything OK, redirect user to next step url).
Submit was successful, no error happened and one of submitting
button is control to indicate that user could be redirected
to next step URL in multiple forms wizard (typically e-shop ordering).
|
|
string |
FIELD_RENDER_MODE_NORMAL
Control/labels rendering mode (normal ).
Label will be rendered before control,
only checkbox and radio button label
will be rendered after control.
Control/labels rendering mode (normal ).
Label will be rendered before control,
only checkbox and radio button label
will be rendered after control.
|
|
string |
FIELD_RENDER_MODE_NO_LABEL
Control/labels rendering mode (no-label ).
No label will be rendered with control.
Control/labels rendering mode (no-label ).
No label will be rendered with control.
|
|
string |
FIELD_RENDER_MODE_LABEL_AROUND
Control/labels rendering mode (label-around ).
Label will be rendered around control.
Control/labels rendering mode (label-around ).
Label will be rendered around control.
|
|
string |
ERROR_RENDER_MODE_ALL_TOGETHER
Control errors rendering mode (all-together ).
All errors are rendered naturally at form begin together in one HTML <div> element.
If you are using custom template for form - you have to call after form beginning
$form->RenderErrors(); to get all errors into template. This value is used as
default for all \MvcCore\Ext\Form instances.
Control errors rendering mode (all-together ).
All errors are rendered naturally at form begin together in one HTML <div> element.
If you are using custom template for form - you have to call after form beginning
$form->RenderErrors(); to get all errors into template. This value is used as
default for all \MvcCore\Ext\Form instances.
|
|
string |
ERROR_RENDER_MODE_BEFORE_EACH_CONTROL
Control errors rendering mode (before-each-control ).
If there will be any error, it will be rendered as single span.errors
before current form control with single or multiple span.error elements
inside, by errors count for current form control. It will be rendered in
natural form rendering mode without template but also in custom form rendering mode
with template if you call anytime in template $field->RenderLabelAndControl();
If you will use in custom form rendering mod with template method $field->RenderControl(); ,
there will be not rendered any error spans before control, you have to use $field->RenderErrors();
to get errors for each control.
Control errors rendering mode (before-each-control ).
If there will be any error, it will be rendered as single span.errors
before current form control with single or multiple span.error elements
inside, by errors count for current form control. It will be rendered in
natural form rendering mode without template but also in custom form rendering mode
with template if you call anytime in template $field->RenderLabelAndControl();
If you will use in custom form rendering mod with template method $field->RenderControl(); ,
there will be not rendered any error spans before control, you have to use $field->RenderErrors();
to get errors for each control.
|
|
string |
ERROR_RENDER_MODE_AFTER_EACH_CONTROL
Control errors rendering mode (after-each-control ).
If there will be any error, it will be rendered as single span.errors
after current form control with single or multiple span.error elements
inside, by errors count for current form control. It will be rendered in
natural form rendering mode without template but also in custom form rendering mode
with template if you call anytime in template $field->RenderLabelAndControl();
If you will use in custom form rendering mode with template method $field->RenderControl(); ,
there will be rendered no error spans before control, you have to use $field->RenderErrors();
to get errors for each control.
Control errors rendering mode (after-each-control ).
If there will be any error, it will be rendered as single span.errors
after current form control with single or multiple span.error elements
inside, by errors count for current form control. It will be rendered in
natural form rendering mode without template but also in custom form rendering mode
with template if you call anytime in template $field->RenderLabelAndControl();
If you will use in custom form rendering mode with template method $field->RenderControl(); ,
there will be rendered no error spans before control, you have to use $field->RenderErrors();
to get errors for each control.
|
|
string |
FORM_ASSETS_DIR_REPLACEMENT
MvcCore Form extension library directory replacement string.
MvcCore Form extension library directory replacement string.
|
#
'__MVCCORE_FORM_ASSETS_DIR__'
|