Issue Bug Closed

#89667PHPDoc for SubmitViewHelper looks incorrect

Tomas Norre Mikkelsen 11/13/19, 11:12 updated 12/23/19, 22:44

Description

Looking at the PHPDoc for the SumitViewHelper it looks like the second example is wrong:

Is:

/**
 * Creates a submit button.
 *
 * Examples
 * ========
 *
 * Defaults
 * --------
 *
 * ::
 *
 *    <f:form.submit value="Send Mail" />
 *
 * Output::
 *
 *    <input type="submit" />
 *
 * Dummy content for template preview
 * ----------------------------------
 *
 * ::
 *
 *    <f:submit name="mySubmit" value="Send Mail"><button>dummy button</button></f:submit>
 *
 * Output::
 *
 *    <input type="submit" name="mySubmit" value="Send Mail" />
 */

should be:

/**
 * Creates a submit button.
 *
 * Examples
 * ========
 *
 * Defaults
 * --------
 *
 * ::
 *
 *    <f:form.submit value="Send Mail" />
 *
 * Output::
 *
 *    <input type="submit" />
 *
 * Dummy content for template preview
 * ----------------------------------
 *
 * ::
 *
 *    <f:form.submit name="mySubmit" value="Send Mail"><button>dummy button</button></f:form.submit>
 *
 * Output::
 *
 *    <input type="submit" name="mySubmit" value="Send Mail" />
 */

When using the <f> as the PHPDoc suggestion I get</f>

#1407060572: Fluid parse error in template BackendModule_action_index_a5e062765b6dffa1d95af238639101a7b55c1b56, line 10 at character 6. Error: The ViewHelper "<f:submit>" could not be resolved. Based on your spelling, the system would load the class "TYPO3Fluid\Fluid\ViewHelpers\SubmitViewHelper", however this class does not exist. (error code 1407060572). 

Reviews 2