Bug #5108

Custom ViewHelper couldnt find validator of its own domain

Added by Fernando Arconada over 12 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Must have
Category:
-
Target version:
-
Start date:
2009-10-25
Due date:
% Done:

100%

Estimated time:
Has patch:

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".

#1

Updated by Sebastian Kurfuerst over 12 years ago

  • Project changed from 534 to TYPO3.Fluid
#2

Updated by Sebastian Kurfuerst over 12 years ago

  • Status changed from New to Accepted
  • Assignee set to Sebastian Kurfuerst
#3

Updated by Sebastian Kurfuerst over 12 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF