Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
Separating content displayed in a header and footer template

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
clifft
Smarty n00b


Joined: 15 Feb 2012
Posts: 1

PostPosted: Wed Feb 15, 2012 1:00 pm    Post subject: Separating content displayed in a header and footer template Reply with quote

Hi

I'm working with a search directory solution that uses smarty and php. This solution has a header and footer which is easy enough to understand. When a link is clicked, Smarty loads content at the end of the header. How it works I'm not quite sure as I see no tag for this in the header but I'm assuming this is specified in a php file that compiles the two .tpl(header, footer).

All links on the page loads content in the left column of a table which is fine except when a user performs a search. Instead of having the search results appear in the left column I would like them to appear in the right column.

I'm lost on how to define this action. My best guess is I have to define some kind of if statement in the php file that compiles the two and put some tag that calls the search results in the footer.

If anyone could give me some pointer on how to do this I would be very grateful.
Back to top
View user's profile Send private message
jacz
Smarty Pro


Joined: 13 Nov 2010
Posts: 249

PostPosted: Sun Feb 26, 2012 11:33 am    Post subject: Reply with quote

http://www.smarty.net/docs/en/language.function.include.tpl
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    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