Grokbase Groups PHP cake-php May 2012
FAQ
I have URL /operations configured to 'controller' => 'milli'
But Cake builds pagination links such as /milli/operations/page:2
How can I tell it not to include the controller name milli so it's /
operations/page:2 ?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+uns[email protected] For more options, visit this group at http://groups.google.com/group/cake-php

Search Discussions

  • Rahajiyev at May 22, 2012 at 7:45 am
    This line does it, put in template:

    $this->Paginator->options(array('url' => array('controller' => null)))


    Now all page links are generated without the controller name.

    Not sure if it's clean to be put it there and not in the controller,
    but I couldn't find out how to do that.

    --
    Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
    Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


    To unsubscribe from this group, send email to
    cake-php+uns[email protected] For more options, visit this group at http://groups.google.com/group/cake-php

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcake-php @
categoriesphp
postedMay 22, '12 at 7:33a
activeMay 22, '12 at 7:45a
posts2
users1
websitecakephp.org
irc#cakephp

1 user in discussion

Rahajiyev: 2 posts

People

Translate

site design / logo © 2023 Grokbase