Hello baker..

I just found this code
http://bin.cakephp.org/saved/38536

but after I followed then I got this error message "Fatal error: Class
'AppHelper' not found in C:\xampp\htdocs\stream\app\views\helpers
\media_player.php on line 106"

Model : video.php
<?php
class Video extends AppModel {
   var $name = 'Video';
}
?>

Controller : videos_controller.php
<?php
class VideosController extends AppController {

        var $helpers = array('MediaPlayer');

        function index() {

        }
}
?>

View : index.ctp
<?php
    $mediaPlayer->show($media, $options = array());
    echo $mediaPlayer->show('filename.mov');
    echo $mediaPlayer->show('http://www.youtube.com/watch?
v=DvdfO0lq4rQ', array('options' => array('ratio' => '4:3')));
 ?>



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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