Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

include template form within template

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


Joined: 05 Jun 2006
Posts: 18

PostPosted: Wed Jul 19, 2006 3:25 pm    Post subject: include template form within template Reply with quote

Hi,
I think I am being stupid but I couldn't find any posts addressing this.

I am trying to include a navigation file fromwithin another template.
I tried this

{include file='../clearcmslib/Templates/public/navigation.tpl'}
{include file='/../clearcmslib/Templates/public/navigation.tpl'}
{include file='navigation.tpl'}
and I also tried
{include file={$smarty.server.DOCUMENT_ROOT}{$smary.const.CMS_LIB}'/Templates/public/navigation.tpl'}


All of them give the same, can'tload the template file error.

Anybody know how i am being dumb because this must be very simple.

Thanks,

TW
_________________
We make a living by what we get.
We make a life by what we give.
Back to top
View user's profile Send private message
LeGaS
Smarty Rookie


Joined: 14 May 2005
Posts: 17
Location: Hungary

PostPosted: Wed Jul 19, 2006 3:29 pm    Post subject: Reply with quote

Hi!

Try this:
Code:
{include file="./clearcmslib/Templates/public/navigation.tpl"}
Back to top
View user's profile Send private message
TofuWarrior
Smarty Rookie


Joined: 05 Jun 2006
Posts: 18

PostPosted: Wed Jul 19, 2006 3:33 pm    Post subject: Reply with quote

just tried
{include file='public/navigation.tpl'}which worked.

Sigh, I am dumb.

Thanks for reply.
TW
_________________
We make a living by what we get.
We make a life by what we give.
Back to top
View user's profile Send private message
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