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

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

Tag Video possible to add function

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

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.'>';
         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>.

Site Admin
Site Admin
Posts: 6170
Joined: Jan 7th, '09, 23:18

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}”