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

Smarty template in multi directories ?

 
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 -> Installation and Setup
View previous topic :: View next topic  
Author Message
sarahfoxnz
Smarty Regular


Joined: 11 Apr 2010
Posts: 76

PostPosted: Fri Jul 26, 2013 11:29 am    Post subject: Smarty template in multi directories ? Reply with quote

I've successfully installed Smarty in a few directories (& subdomains) on my website.

I'm wondering, is it easy / possible to have a smarty template 'called' from another directory / suibdomain ..

Ie, a login/logout script (http://accounts.domain.com) , & when you are logged in, a menu appears with links to 2-3 areas of my site.

http://subdomain1.domain.com
http://subdomain2.domain.com
http://subdomain3.domain.com

These are all in different directories / areas of my FTP directories.

I'm using SESSIONS to record the logged in status of a usr.

EDIT: so the 'template' is stored in my 'accounts' directory, but if logged in, will be available / shown on any of the other subdomains.
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Sat Jul 27, 2013 7:50 pm    Post subject: Reply with quote

To be clear, templates are accessed on the server side, so having templates residing in different directories should work just fine. You don't use URLs to access templates, so domains shouldn't matter.
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 -> Installation and Setup 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