You may use HtmlHelper->tag()

$this->Html->tag(__('your browser does not support the video tag',
true), array('src' => '/video.ogv', array('controls' => 'controls'));

On Apr 29, 10:03 pm, Phil <[email protected]> wrote:
> Hi!
>
> I'm trying to add a video file into my cakephp project using the html5
> <video> tag. If i write a simple html file with this code:
>
> <video src="video.ogv" controls="controls">
> your browser does not support the video tag
> </video>
>
> If works properly in firefox. But if I try to the next code to my .ctp
> file in cakephp, firefox shows the player but is not playing the
> video:
>
> <video src="/video.ogv" controls="controls">
> your browser does not support the video tag
> </video>
>
> The video.ogv is in the webroot folder.
>
> Thanks.
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to