2009年1月4日星期日

[fw-mvc] Pagination and Routes Config

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.

没有评论: