Define a custom CakePHP pagination url -


is possible define custom url cakephp pagination url?

i need /:slug/:slug2/:slug3/. how should provide url pagination?

thanks!!

p.s. if i'm using this, cakephp defines controller , view automatically in url , result /controller/action/something/ - need disable controller , action in url.

$this->paginator->options(array(     'url' => '/something/' )); 

use routing. http://book.cakephp.org/2.0/en/development/routing.html

you should not use string type urls "internal" links because won't work routing , links wont work more in case app in subdirectory of webroot.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -