Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
SmartyPaginate $smarty->display

 
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
Silkutz
Smarty n00b


Joined: 13 Jul 2009
Posts: 2

PostPosted: Mon Jun 28, 2010 9:39 am    Post subject: SmartyPaginate $smarty->display Reply with quote

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... Smile



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
View user's profile Send private message Send e-mail
scuzzy
Smarty Regular


Joined: 31 Aug 2003
Posts: 69

PostPosted: Mon Jun 28, 2010 11:58 pm    Post subject: Reply with quote

<div id="content">

Missing a closing tag and a quote?
Back to top
View user's profile Send private message
Silkutz
Smarty n00b


Joined: 13 Jul 2009
Posts: 2

PostPosted: Tue Jun 29, 2010 7:16 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons 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