| Author |
refreshing required to see content
|
|
| Darren Crotchett 2007-02-12, 7:14 pm |
| I am having a problem implementing Pear::Auth with Smarty. My login
is working to the extent that I can put in valid information and it
will let me through. But, after providing valid credentials, I'm
just presented with a blank screen. I have to refresh the page to
see the content. Unfortunately, I'm new to Pear::Auth, too. And,
I'm not finding a lot of documentation on it.
I would very much appreciate some help with this.
Here's some code snippets (I'll try to provide enough, but not too
much):
(index.php)
if($homepage->checkAuth())
$homepage->displayLinks($homepage->getEntriesByCategory());
else
$homepage->displayLogin();
(mylibrary.php)
function displayLinks($data) {
// -- tpl is an instance of Homepage_Smarty which extends Smarty.
// -- $data in an array that my template parses
$this->tpl->assign('link', $data);
$this->tpl->display('index.tpl');
}
function displayLogin() {
/* show the authorization form */
$this->auth->start();
$this->tpl->display('index.tpl');
}
getEntriesByCategory() {
// this returns an array of results from a SQL query
// I don't think it important to this
}
TIA,
Darren
________________________________________
________________________________________
____
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front
| |
|
|
|
|
| Adanpoenceted2 2007-05-14, 12:04 am |
| the alleged britney spears sex tape!
http://celebsvips.com/b1.jpg
Looks like the alleged Britney Spears K-fed tapes may have finally gotten into the wrong hands. Britney should try investing a tiny percentage of her money into a decent camera! Funny how a video surfaces a day after their divorce. Looks like Kevin is out for revenge!
A source told US W ly magazine: "He has threatened to release raunchy footage of the two taken before Spears looked pregnant."
This is the hottest scandal since the release of the Paris Hilton Sex Tape! Its not conclusive but damn, if thats Britney she can really wax a pole! This is what weve all been waiting for. | |
|
|
|
|
|
|
|
|
|
|