|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Silkutz Smarty n00b
Joined: 13 Jul 2009 Posts: 2
|
Posted: Mon Jun 28, 2010 9:39 am Post subject: SmartyPaginate $smarty->display |
|
|
Hi guys,
Installed the SmartyPaginate addon and have it up and running. I do however have an annoying problem where if the vaildation fails (because of user error) then when my php page runs the line $smarty->display it causes it to show the template with the error messages showing but outside my master template page.
The way I usually load in templates files is with:
$smarty->assign('mainContent', 'register/reg_geek.tpl');
Where mainContent is setup like this in my page.tpl
<div id="content
{if $mainContent}
{include file=$mainContent}
{else}
{include file='./index/index.tpl'}
{/if}
</div>
Anyone with any ideas...
p.s If I have confused you im sorry if you still feel like helping me please see attached screenshot of the problem
Thanks in advance |
|
Back to top |
|
scuzzy Smarty Regular
Joined: 31 Aug 2003 Posts: 84
|
Posted: Mon Jun 28, 2010 11:58 pm Post subject: |
|
|
<div id="content">
Missing a closing tag and a quote? |
|
Back to top |
|
Silkutz Smarty n00b
Joined: 13 Jul 2009 Posts: 2
|
Posted: Tue Jun 29, 2010 7:16 am Post subject: |
|
|
nah thats just a typo im afraid.
Its just to do with the $display-> function. Do I have to use this with smartyvaildation? |
|
Back to top |
|
|
|
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
|