Page 1 of 1

Tag Video possible to add function

Posted: May 23rd, '17, 09:05
by paragate
hi
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

Re: Tag Video possible to add function

Posted: May 24th, '17, 12:40
by administrator
Good ides, thanks, we'l ladd such tag in the next version.