Re: [SMARTY] Problem with ConfigFiles (scope global)
| From: | Norbert Röcher | Date: | Thu, 16 May 2002 04:27:25 +0000 |
| Subject: | Re: [SMARTY] Problem with ConfigFiles (scope global) | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4204@lists.php.net to get a copy of this message | ||
"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