Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Fetch() problem

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
6 ANUR
Smarty Rookie


Joined: 06 May 2003
Posts: 23
Location: Lille, France

PostPosted: Tue May 06, 2003 7:51 pm    Post subject: Fetch() problem Reply with quote

Hi all,

I am trying to fetch a template that is not in my template directory but I
can not make it work.
To be more precise I use themes on my site so my template directory changes
depending on the theme used but I also use a unique template for displaying
some debug informations which is in a separate directory.

I tried by passing the absolute and the relative paths to the template file.

Is there a way to do that ?
Thanks a lot.

Jean-Marc

PS: I have already sent this question to the general mailing list but it seems to have been rejected. Excuse me if it was actually sent.
Back to top
View user's profile Send private message Visit poster's website
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Tue May 06, 2003 10:43 pm    Post subject: Reply with quote

See: http://www.phpinsider.com/smarty-forum/viewtopic.php?t=5

I should also note that you can use the file: resource.

See: http://smarty.php.net/manual/en/templates.from.any.dir.php

and more generally:

See: http://smarty.php.net/manual/en/template.resources.php
Back to top
View user's profile Send private message
6 ANUR
Smarty Rookie


Joined: 06 May 2003
Posts: 23
Location: Lille, France

PostPosted: Wed May 07, 2003 8:02 am    Post subject: Reply with quote

Thanks a lot for your help. Very Happy

In fact I already tried the "file:" method but I could not make it work. Maybe I did something wrong, I will look at it deeper.

Regards

Jean-Marc
Back to top
View user's profile Send private message Visit poster's website
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Wed May 07, 2003 8:38 am    Post subject: Reply with quote

Post the code that isn't working the way you expect it to -- perhaps someone can spot the error.

Good-luck
Back to top
View user's profile Send private message
6 ANUR
Smarty Rookie


Joined: 06 May 2003
Posts: 23
Location: Lille, France

PostPosted: Thu May 08, 2003 9:26 am    Post subject: Reply with quote

It works now using the "file:" syntax. I must have done some mysterious mistake the first time I tried Confused

Thanks a lot for your help. Very Happy

Regards.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP