Re: [SMARTY] WTF? Getting errors on creating dirs 'n files
| From: | Norbert Röcher | Date: | Fri, 28 Jun 2002 04:26:38 +0000 |
| Subject: | Re: [SMARTY] WTF? Getting errors on creating dirs 'n files | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5081@lists.php.net to get a copy of this message | ||
"Monte Ohrt" <monte@ispi.net> schrieb im Newsbeitrag
news:3D1B1C99.3020606@ispi.net...
> ...that is what CVS is for, and
Sure and of course... :-)
> that is why I asked everyone that could to participate in finding these
> problems!
>
> So, I'd like to get this fixed as much as you do... what did you do to
> make this happen? Did you pass a cache_id or compile_id, etc? Be as
> discriptive as possible so I can repeat it.
All id did was a dynamic change to the cache_dir. The number at the
beginning of the path is the ID of the actual page. The rest is part of
the template-name-string. It seems the root gets lost...
simplified code-snip of the app:
---- start snipplet ----
chdir (dirname(__FILE__));
$block_id = 1;
$cacheID = ',12345,12345'
$smarty -> cache_dir = "MyTheme/cache/blocks/{$block_id}";
$template = 'contentTemplates/user/index.tpl';
$smarty -> display ($template, $cacheID);
---- end snipplet ----
Regards,
Norbert