|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
blutech Smarty n00b
Joined: 16 Aug 2004 Posts: 4 Location: england
|
Posted: Tue Aug 17, 2004 12:32 pm Post subject: resource naming tricky problem |
|
|
Hi There,
This may have already been asked before, but I couldnt find the answer so far..
I have a customer resource type, which accesses data within a tree structure, the data can be accessed directly from the root of the tree, BUT I also allow you to access data via the current selected node.. Which means that the cached filename parsed to Smarty can look the same but would actually be a different file.
For instance.
fetch("path:.[template1.tpl]")
is the equi of
fetch("path:storage.templates.[template1.tpl]");
Three is no way within your "smarty_resource_####_source" file to return back the *actual* file accessed, where in the system could I override the file that is being stored within the cache? Basically I need to pre-parse the path/filename before it is accessed.
Anyone tried to do this before?
Thanks
Nick Halstead |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|