Re: HTML_Template_Sigma
| From: | red | Date: | Mon, 06 Jun 2005 21:35:49 +0000 |
| Subject: | Re: HTML_Template_Sigma | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19489@lists.php.net to get a copy of this message | ||
Hi
my first question would be: what are you doing here?
/* add in the output */
$global->data .= $global->tpl->get();
Yeah, I know, you're storing the output of $global->tpl and store it in
$global->date. But why are you doing this?
Beside of this, you are doing a setCurrentBlock("rootforums" ); at the
beginning of the while loop then you set several different 'current
blocks' withing the foreach loop and after that you parse the current
block... which isn't 'rootforums' any longer. try to move the category
rendering method calls behind the foreach loop.
HTH
greets
red
Cliff wrote:
I know I have posted before with a stupid PHP problem that had nothing do with PEAR. This time, however, I have made sure it is a problem with HTML_Template_Sigma, as the looping works fine but the templates output is not working as it should. http://pearbb.net It shows one (the last) category and 0 forums, while there are in fact 3 categories and 5 forums. http://pearbb.net/Includes/main.phps - the code http://pearbb.net/Templates/1/boards.tpl - the template Could someone point out what I have done wrong? Ruben K.-- http://www.raven.ch/ - red@raven.ch - icq: 33960605 Bahnhofstrasse 14 - 3400 Burgdorf - Switzerland Mobile: +41 76 373 70 20 - skype: syeo66 PGP-Key: http://www.raven.ch/public_key.asc P.O.D. - Satellite (Oakenfold Remix)