Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorpeitung
    • CommentTimeDec 10th 2007
     
    I'm trying to modify the base url that the paginator creates. I used scaffolding to create the listing, but then moved it to a different controller. Orginally, it was set as:

    http://localhost/item/listing

    now it is:

    http://localhost/admin/item/listing

    The paginator does not take the base url into account and I cannot find the option to add/change the url. Any help pointing me in the right direction is appreciated.

    Thanks.
    • CommentAuthorpeitung
    • CommentTimeDec 10th 2007
     
    To clarify, the paginator is not rendering links correctly.
    • CommentAuthorpeitung
    • CommentTimeDec 11th 2007
     
    problem was in the url_helper.php file.

    in the modify_current_url function, line 47, it should read:

    $options_to_add = array_merge(array_merge(array('action'=>$this->_controller->Request->getAction(), 'controller' => $this->_controller->Request->getController()),$this->_controller->Request->getParameters()),$options_to_add);

    the original only took into account GET params.
    • CommentAuthorKaste
    • CommentTimeDec 11th 2007
     
    can you TRAC this and send in a patch?
Add your comments
    Username Password
  • Format comments as