i do some video script and miss the tag where i can put control into like:
Code: Select all
public static function videoTag($tag, $htmlOptions = array(), $content = false, $closeTag = true)
{
$html = '<'.$tag.self::_renderAttributes($htmlOptions);
if($content === false){
return $closeTag ? $html.' />' : $html.'>';
}else{
return $closeTag ? $html. $content.'></'.$tag.'>' : $html.'>'.$content;
}
}
as in $output = CHtml::videoTag('video', array('id' => 'videoPlayer'),' control',true).self::NL;
I have done it myself but do you have or will you put that into Chtml?
i know its only the closing > content (<control>.
regards