bushdoc Posted July 24, 2009 Share Posted July 24, 2009 Hi folks I'm trying to create some custom templates within the client area but am having problems accessing them. If I create a tpl file clientareatest.tpl, how can I access this through the clientarea.php file? For example, the change security question tpl file is clientareachangesq.tpl and accessed through clientarea.php?action=changesq. Using this method with a custom template I just get a blank clientarea.php page. TIA 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted July 24, 2009 Share Posted July 24, 2009 Try: {include file='template/$template/clientareatest.tpl'} * Have you created the php for the tpl? Then you can just access it from the php. 0 Quote Link to comment Share on other sites More sharing options...
jayward Posted July 24, 2009 Share Posted July 24, 2009 I am not sure that the templating is done the way you are thinking it is. From your testing, it seems that action=whatever does not translate into using template whatever.tpl. You can kinda be sly about it and do something like change clientareachangesq.tpl (or any other) and go like: {if isset($smarty.request.somevar)} <!-- as BAJI26 said --> {include file='template/$template/clientareatest.tpl'} {else} ... the regular template {/if} and then access it through clientarea.php?action=changesq&somevar=1 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.