Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

2.9 does'nt work for me

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
maxsoft
Smarty n00b


Joined: 02 Mar 2008
Posts: 1

PostPosted: Sun Mar 02, 2008 5:47 pm    Post subject: 2.9 does'nt work for me Reply with quote

I have just tried to use yor plugin, but can't be able to make it work. Navigation bar does't show. here it is my code:
Code:
 ################################################
    // required connect pagination
    SmartyPaginate::connect();
    // set items per page
    SmartyPaginate::setLimit(5);
 ################################################
    $listdisp=$nmap->Display_by_region($var,SmartyPaginate::getCurrentIndex(),SmartyPaginate::getLimit());
    SmartyPaginate::setTotal($nmap->Num_postazioni($var));
 ################################################
    SmartyPaginate::assign($smarty);
 ################################################

the Display_by_region call works and items returned for first time are five as 'setLimit' is showing. I put session_start in an include statement on this php page.
In tpl file is shown:
Code:
{if $paginate.size gt 1}
            Items {$paginate.first}-{$paginate.last} of {$paginate.total} displayed.
         {else}
            Item {$paginate.first} of {$paginate.total} displayed.
         {/if}
{* display pagination info *}
         {paginate_prev} {paginate_middle} {paginate_next}

"Items 1-5 of 7 displayed. " //5 rows are fetched.
----no nav bar----

Please tell me where I'm wrong (I use the last smarty release and 2.9 paginate plugin)
Max.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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