PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Smarty Pager links are wrong

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Structures
View previous topic :: View next topic  
Author Message
pecus



Joined: 31 Oct 2006
Posts: 3

PostPosted: Wed Nov 29, 2006 1:43 am    Post subject: Smarty Pager links are wrong Reply with quote

When passing selfPath as a renderer option, in the common case of using rewrites for pages URLs, while the columns link inherit the correct link, paging links do not.
This happens with Smarty renderer (which calls Pager renderer and Pager package).
It looks like a bug to me but maybe I'm doing something wrong.
Here's the code:

Code:

$datagridOptions["generate_columns"] = true;
$datagridOptions["fields"] = array_unique(array_merge($genericFields, $GC_extraFields));

//$SQLresult is array()
$test = $datagrid->bind($SQLresult, $datagridOptions);

$rendererOptions = array(
    'sortIconASC' => '⇑',
    'sortIconDESC' => '⇓',
   'selfPath' => '/path/to/rewrite/url/page',
   'excludeVars' => array ('lang', 'area', 'category')
);

$datagrid->fill($smarty, $rendererOptions);


Smarty template:

Code:

{getPaging prevImg="«" nextImg="»" separator="|" delta="5"}


Code is straight from example in Smarty Renderer.

Platform: winXP, PHP 4.3.10, Apache 1.3.33.

Pager 2.4.2 stable
Structures_DataGrid 0.7.2 beta
Structures_DataGrid_Renderer_Pager 0.1.0 beta
Structures_DataGrid_Renderer_Smarty 0.1.2 beta
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1004

PostPosted: Sun Jan 07, 2007 6:53 pm    Post subject: Reply with quote

If this problem is still valid, please open a bug report the Smarty renderer of Structures_DataGrid here:
http://pear.php.net/bugs/report.php?package=Structures_DataGrid_Renderer_Smarty
Back to top
View user's profile Send private message
pecus



Joined: 31 Oct 2006
Posts: 3

PostPosted: Mon Jan 08, 2007 12:05 pm    Post subject: Reply with quote

mark wrote:
If this problem is still valid, please open a bug report the Smarty renderer of Structures_DataGrid here:
http://pear.php.net/bugs/report.php?package=Structures_DataGrid_Renderer_Smarty


For reference, the bug was opened and fixed. See the CVS version if you need a quick fix, or wait for the next release of the package.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Structures All times are GMT + 2 Hours
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



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software