Re: Query Regarding Paging in datagrid
| From: | Olivier Guilyardi | Date: | Sat, 10 Jun 2006 10:31:44 +0000 |
| Subject: | Re: Query Regarding Paging in datagrid | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24316@lists.php.net to get a copy of this message | ||
moses@softwaysolutions.com wrote:
You could just write a simple wrapper function, like : function getMyPaging(&$datagrid) {...} Btw, if you use the Smarty renderer (as mentionned in your previous post), you can use the Smarty function {getPaging} in your templates. Example : {getPaging prevImg="<<" nextImg=">>" separator=" | " delta="5"} Now, what you could do, is to register your getMyPaging() wrapper function with : Smarty::registerFunction(). So you should be able to simply write : {getMyPaging} -- ogHi$pagingHtml = $renderer->getPaging();The above Coding displays the default paging format.If I want to change the paging format I can pass arguments.My Question isIn My application I wil be using a common paging format.Now what I am doing is at every time I am passing all the arguments.Is there any other way that where I will call only the getPaging() function and to specify the paging formats some where else and that format should apply to the paging when ever I call the function getPaging() without passing any arguments .regardsmoses