Mwarfffffff *** Killing myself ***

I'm feel so stupid....
Sometimes it's better to sleep :)

Thanks

On 1/8/07, AHeimlich <[EMAIL PROTECTED]> wrote:


Get rid of the semi-colon after the declaration of flash().

You have:

public function flash($filename = '', $width = 400, $height = 300);
//line23
{
   // code...
}

It should be:

public function flash($filename = '', $width = 400, $height = 300)
//line23
{
   // code...
}



Yann Nave wrote:
>
> Hye everybody,
>
> Trying to set my own helper to format some html element, logs return  :
>
> [07-Jan-2007 23:52:55] PHP Fatal error:  Non-abstract method
> Zend_View_Helper_Flash::flash() must contain body in
>
/data/web/directinfoservice.com/zf.directinfoservice.com/application/helpers/Flash.php
> on line 23
>
>
> Here is my Helper file
>
> <?php
>
> /**
>  * Helper to generate a "flash" object element
>  *
>  */
>
> class Zend_View_Helper_Flash{
>
>     /**
>      * Generate flash object
>      *
>      * @access public
>      *
>      * @param string $filename
>      *
>      * @param int $width
>      *
>      * @param int $heigh
>      *
>      * @return string
>      */
>     public function flash($filename = '', $width = 400, $height = 300);
//
> line23
>     {
>         $object = <<<EOF
>         <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
>         codebase="
>
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0
> "
>         width="400" height="300"
>         id="movie" name="movie">
>             <param name="movie" value="$filename">
>             <embed src="$filename"
>             quality="high" name="movie" id="movie"
>             width="$width" height="$height" align=""
>             type="application/x-shockwave-flash"
>             pluginspage="http://www.macromedia.com/go/getflashplayer";>
>         </object>
> EOF;
>
>         return $object;
>     }
> }
> ?>
>
> I try to extend with Zen_View_Helper  but same error. Is there a bug or
> other ?
>
> Thanks
> --
> Yannux
> http://blog.onbebop.net
>
>

--
View this message in context:
http://www.nabble.com/Helper-bug---tf2936521s16154.html#a8210437
Sent from the Zend Framework mailing list archive at Nabble.com.




--
Yannux
http://blog.onbebop.net

Reply via email to