2009年1月5日星期一

Re: [fw-mvc] Pagination and Routes Config

Post the actual routes and actual URLs (minus host) that are relevant to your question, please.

-Matt

On Sun, Jan 4, 2009 at 9:51 AM, ZendforSure <gtaprogrammer@live.com> wrote:

Im fairly new to Zend Framework.

I am using a config file to store all my routes ex.

       $Route = new Zend_Controller_Router_Route(
               'account/:controller/:key/:key2/:key3',
               array(
                       'module' => 'account',
                       'controller' => 'index',
                       'key'=> '',
                       'key2'=> '',
                       'key3'=> ''
               ));

The following works just fine for pagination.

Before pagination: www.example.com/module/controller/action/
After pagination: www.example.com/module/controller/action/page/2

While using this route the for pagination browsing pages does not work.

Before pagination: www.example.com/module/controller/action/1/1
After pagination: www.example.com/module/controller/action/1/1

Can someone tell me whats causing the issue. Is it how I have my route
configured or is there something I have to change with the paginator itself.

Thanks
--
View this message in context: http://www.nabble.com/Pagination-and-Routes-Config-tp21279032p21279032.html
Sent from the Zend MVC mailing list archive at Nabble.com.


没有评论: