Bug #5108
Custom ViewHelper couldnt find validator of its own domain
Status: | Resolved | Start date: | 2009-10-25 | |
---|---|---|---|---|
Priority: | Must have | Due date: | ||
Assigned To: | Sebastian Kurfuerst | % Done: | 100% |
|
Category: | - | |||
Target version: | - | |||
Has patch: | Affected Flow version: |
Description
I've a model Tx_Mytube_Domain_Model_Video
I have created a ViewHelper
class Tx_Mytube_ViewHelpers_VideoViewHelper extends
Tx_Fluid_Core_ViewHelper_AbstractViewHelper {
- Renders the video player *
- @param Tx_Mytube_Domain_Model_Video $video
- @return string the content of the rendered TypoScript object
*/
public function render(Tx_Mytube_Domain_Model_Video $video) {
return "AAAAAA";
}
}
?>
and a template
{namespace mytube=Tx_Mytube_ViewHelpers}
<mytube:video video="{video}"/>
But i having an exception
#1237900534: No validator found for argument name "video" with type
"Tx_Mytube_Domain_Model_Video" in view helper
"Tx_Mytube_ViewHelpers_VideoViewHelper".
Associated revisions
[+BUGFIX] Fluid (Core): Validation of ViewHelper arguments is non-mandatory now, as there is no validator for each domain object / we do not always want to call it. Resolves #5108.
[+BUGFIX] Fluid (Core): Shorthand Syntax of ViewHelpers can now use longer namespace prefixes than one character. Resolves #5107.
History
#1 Updated by Sebastian Kurfuerst almost 6 years ago
- Project changed from Extbase MVC Framework to TYPO3.Fluid
#2 Updated by Sebastian Kurfuerst almost 6 years ago
- Status changed from New to Accepted
- Assigned To set to Sebastian Kurfuerst
#3 Updated by Sebastian Kurfuerst almost 6 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100