Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorpeitung
     
    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
     
    To clarify, the paginator is not rendering links correctly.
    • CommentAuthorpeitung
     
    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
     
    can you TRAC this and send in a patch?