Re: HTML_Template_Sigma

From: Date: Sun, 05 Jun 2005 13:42:41 +0000
Subject: Re: HTML_Template_Sigma
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19462@lists.php.net to get a copy of this message
Hi, Cliff wrote:
I have a problem with HTML_Template_Sigma. http://pearbb.net When you hover over a category link (the orange div ones), it links to forum-.php It should, however, link to forum-{id}.php Something must have gone wrong with setting the variable, as the variable itself holds the id correctly. http://pearbb.net/Includes/main.phps - the code http://pearbb.net/Templates/1/boards.tpl - the template Could somebody please assist me with this?
Your problem has little to do with HTML_Template_Sigma, there is a problem in your code here:
        while( $roots = $result->fetchrow(DB_FETCHMODE_ASSOC) )
        {
            $this->roots[]['id'] = $roots['id'];
            $this->roots[]['name'] = $roots['name'];
        }
You get an array of the following structure from this: array(
    array('id' => id),
    array('name' => name),
    array('id' => id),
    array('name' => name)
); I bet that's not exactly the thing you wanted... I suggest starting with something less complicated than a full-blown bulletin board if you want to learn PHP by creating an OpenSource project.

« previous php.pear.general (#19462) next »