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
Post a Comment