[TYPO3-mvc] Custom view helper problem
Fernando Arconada
falcifer2001 at yahoo.es
Sun Oct 25 12:53:05 CET 2009
Hello
I've a model Tx_Mytube_Domain_Model_Video
I have created a ViewHelper
<?php
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".
What am i doing wrong?
Kind regards
Fernando Arconada
More information about the TYPO3-project-typo3v4mvc
mailing list