Welcome Guest, Not a member yet? Register   Sign In
Pager - Pagination Widget
#4

[eluser]xwero[/eluser]
The last version of the function has less options because generation of the first, last, next and prev elements will not hurt the performance. The link_replacement setting is connected to the totalLinks, or in your version num_links, setting so i let that generate too.
Basically you can use all the options or none of them in the view but you don't need to set them anymore when you call the function. I think this is more developer friendly and less ifing in the function.

An addition is the formattedLink parameter. This moves the link creation from the view to the controller if you want. This makes an array of all the generated links with two keys: nr and link. So it's still possible to create the link in the view bu you have to use $first['nr'] instead of $first. Of course the idea is to use $first['link'].


Messages In This Thread
Pager - Pagination Widget - by El Forum - 04-17-2009, 02:18 AM
Pager - Pagination Widget - by El Forum - 04-17-2009, 03:02 AM
Pager - Pagination Widget - by El Forum - 04-17-2009, 03:05 AM
Pager - Pagination Widget - by El Forum - 04-17-2009, 03:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB