Tag Video possible to add function

Discuss everything related to ApPHP MVC Framework. All versions. Any questions related to the Framework developing or using should be posted to this forum.

Moderators: alexandrleonenko, alexmst

paragate
Master
Master
Posts: 151
Joined: Nov 13th, '14, 13:04
Location: Denmark, Odense

Tag Video possible to add function

Postby paragate » May 23rd, '17, 09:05

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

administrator
Site Admin
Site Admin
Posts: 6003
Joined: Jan 7th, '09, 23:18
Contact:

Re: Tag Video possible to add function

Postby administrator » May 24th, '17, 12:40

Good ides, thanks, we'l ladd such tag in the next version.


Return to “ApPHP MVC Framework {developers/users}”