Re: [SMARTY] Problem with ConfigFiles (scope global)
| From: | Monte Ohrt | Date: | Thu, 16 May 2002 06:07:52 +0000 |
| Subject: | Re: [SMARTY] Problem with ConfigFiles (scope global) | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4205@lists.php.net to get a copy of this message | ||
In your insert function, are you using the smarty object passed as the second argument?
Norbert Röcher wrote:
"Monte Ohrt" <monte@ispi.net> schrieb im Newsbeitrag news:3CE2623E.1060600@ispi.net...Can you give an example how you are "fetching" the template?With "$smarty->fetch..." ? :-) I assign several block-IDs to the main template. These are used within section sections doing {insert name=block id=$id}. The {insert} gets the blocks content, template and so on by ID, assigns all block specific data to the related sub-template, fetches the output by "$smarty->fetch ('subtemplate.tpl')" and returns it to the main-template. The sense is to output synchronized content of (multiple used and maybe cached) blocks within all cached pages. Greetings, Norbert