![]() |
(SOLVED) i need include .jsp file in .tpl file
Hi all !!! i am newbie member, & my english is very poor sorry :P
i have one question: i need call .jsp file from .tpl file ... is possible ??? i create a new link embedded in home.php page with the metod of editing home_main.tpl: {elseif $smarty.get.mode eq "revelar"} {include file="customer/main/revelar.tpl"} & creating revelar.tpl: { include file="location.tpl" last_location="Revelar On-Line"} {capture name=dialog} {include file="jsp/login.jsp"} -----> is correct? {/capture} { include file="dialog.tpl" title="Revelado On-Line" content=$smarty.capture.dialog extra="width=100%"} & add new link in corresponding whit necessary file: Revelar but the .jsp file is no ready :( i attempt to incorporate one independent module in jsp and to integrate it in x-cart any idea ?? |
what is .jsp?
is .jsp a javascript? if so you'll need to use the literal smarty tags like below with the include statement in between the literal tags, try it and see if it works, anythings worth a shot, let us know if it works
{literal} include("http://www.yourwebsite.com/path/to/jsp/login.jsp"); {/literal} |
see http://smarty.php.net for more info on using smarty templates
|
Re: what is .jsp?
Quote:
hi !!! i have changed in .tpl file: { include file="location.tpl" last_location="Revelar On-Line"} {capture name=dialog} {literal} include("http://xxx.xxx.xxx.xxx/jsp/login.jsp"); {/literal} {/capture} { include file="dialog.tpl" title="Revelado On-Line" content=$smarty.capture.dialog extra="width=100%"} but what appears it is the text chain: include("http://xxx.xxx.xxx.xxx/jsp/login.jsp"); where i am mistaken? |
Solved
{ include file="location.tpl" last_location="Revelar On-Line"}
{capture name=dialog} {fetch file="jsp/login.jsp"} -----> fetch is the command {/capture} { include file="dialog.tpl" title="Revelado On-Line" content=$smarty.capture.dialog extra="width=100%"} :P |
All times are GMT -8. The time now is 06:02 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.