Re: HTML_Page Problem
| From: | Laurent Laville | Date: | Sat, 06 Sep 2003 09:10:35 +0000 |
| Subject: | Re: HTML_Page Problem | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-7612@lists.php.net to get a copy of this message | ||
Hello Sonny,
Even if i'm not the maintainer of HTML_Page, i've took few time to see what
could be happens:
Hope it's ok for Klaus; i know he has some work in way ...
So i rewrite your code like this
<?php
require 'HTML/Page.php';
class PageManager extends HTML_Page {
function PageManager() {}
function body( $string ) {
return $this->addBodyContent( $string );
}
}
$p = new PageManager();
$p->body("hello world");
$p->display();
?>
And i got no problem ! I used myself latest version 2.0.0b5 of HTML_Page and
HTML_Common 1.2.1.
Could you check versions of these packages and if there are no differences
send a full example.
Regards
Laurent
"Sonny" <sonny2@gmx.de> a écrit dans le message de news:
000a01c37407$a3bd2160$0a966496@winko...
> Hello Folks,
>
> as described in the docs from HTML/page:
>
> $page = new HTML_Page();
> $page->addBodyContent("Hallo");
> ...
>
> I won't to use it in a class so like following:
>
> require 'HTML/Page.php';
> class PageManager extends HTML_Page {
> function PageManager() {}
>
> function body( $string ) {
> return $this->addBodyContent( $string ); <-- Line 60
> }
>
> and so on...
>
> }
>
> No when I Try to load my Page I get following Error:
> Fatal error: Call to undefined function: addbodycontent() in
> /var/www/html/../lib/classes/PageManager.php on line 60
>
> Does have something Changed?
>
> Thanks in forward.
>
> Cheers
> _Peter