Doc Error for include_php
| From: | Aliba Sora | Date: | Thu, 05 Dec 2002 09:55:29 +0000 |
| Subject: | Doc Error for include_php | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6644@lists.php.net to get a copy of this message | ||
I should have spotted this one after copying the code but it took me a while
to track down why they weren't displaying in the template.
http://smarty.php.net/manual/en/language.function.include.php.html
Example 7-9. function include_php
load_nav.php
-------------
$this->assign($sections,$sql->record);
Should be
$this->assign("sections",$sql->record);
index.tpl
---------
{foreach item=$curr_section from=$sections}
Should be
{foreach item=curr_section from=$sections}
Whoops! Whoever wrote those was probably doing it at the same hour I was
trying to track it down. Night all....