Combine of PEAR::Auth && PEAR::HTML_Page
| From: | Peter | Date: | Sun, 03 Aug 2003 10:51:04 +0000 |
| Subject: | Combine of PEAR::Auth && PEAR::HTML_Page | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-6970@lists.php.net to get a copy of this message | ||
Hello,
I try to use HTML_Page and Auth, but I don't know how.
Following I have tried.
$obj =& new Builder();
$AU = $obj->initAuth();
$auth = $AU->start();
$CSS = $obj->initCSS('crystal');
require_once 'HTML/Page.php';
$p = new HTML_Page();
$p->addStyleDeclaration(&$CSS, 'text/css');
$p->setTitle("TEST CC AUTH");
$p->addBodyContent(&$auth);
$p->display();
But in the Page itself when look at the source, at first it display the
loginbox from Auth and then it starts with the Page itself.
May someone give a hint how to combine both?
Cheers
-Peter