Blog > Archive by tag 'urls'

Posts Tagged ‘urls’

Changing CakePHP pagination URLs

11.07.2009

CakePHP

CakePHP framework provides a great pagination helper but its default URLs aren’t that great. By default it generates URLs that look like: http://domain/news/page:2. I spent a long time looking for a way to skip “page:” part in URLs and in links generated by the helper, or even just change the string “page” to something else. It showed up that there’s no easy way to configure the paginator that way. So I came up with a workaround that will change your CakePHP pagination URLs to: http://domain/news/2 (more…)

 
Emir SakicEmir is an Electrical Engineer turned web developer, one of Joomla founders and a former member of the core development teams of Joomla and its predecessor Mambo.

Subscribe to our RSS feed Follow us on Twitter

Latest Comments
Re: Forum spam « Sakic.Net blog
thanks for sharing the ways you're using to struggle with...
Re: Forum spam « Sakic.Net blog
I can't ignore it because having thousands of meaningless links...
Re: Forum spam « Sakic.Net blog
Saka, you say "Looks like they are paying poor people...
Re: Package extensions for Joomla 1.5 and 1.0 together « Sakic.Net blog
Really nice, thanks!
Re: Integrating Twitter into your Joomla site « Sakic.Net blog
nice article, thanks for sharing.