now, but the 'page' attribute does not get set in the paginator's
pagesInRange array. As a result, the url looks like this:
/context/whatever_the_context_is
instead of
/context/whatever_the_context_is/page/[page number]
What else do I have to be aware of?
j5 wrote:
>
> Add one more line to your route config
>
> routes.context.reverse = "context/%s"
>
>
> frank.quosdorf wrote:
>>
>> The following route is specified in config.ini:
>>
>> routes.context.type = "Zend_Controller_Router_Route_Regex"
>> routes.context.route = "context/(.+)"
>> routes.context.defaults.module = "context"
>> routes.context.defaults.controller = "index"
>> routes.context.defaults.action = "index"
>> routes.context.map.1 = "context"
>>
>> and made available in Bootstrap:
>>
>> $router->addConfig($config, "routes");
>>
>> When requesting the route including parameter, the correct controller
>> (context/index) is instantiated and the correct action is triggered.
>> After some pre-processing, the request is forwarded to the search
>> controller of another module:
>>
>> $context = $request->get("context");
>> $contextID = $this->findContextID($context); //... pre-processing
>> return $this->_forward("index", "search", "items");
>>
>> The search controller lists results and uses Zend_Paginator to render the
>> pagination. When calling the search controller directly, Zend_Paginator
>> properly renders the pagination. But, when forwarding the request as
>> described above, the Paginator throws the following error:
>>
>> < b r />< b >Warning< /b >: Cannot assemble. Reversed route is not
>> specified. in < b >[path to Zend ]\library\Zend\Paginator.php< /b > on
>> line < b >388< /b >< b r />
>>
>> Is there anything I need to be aware of when using
>> Zend_Controller_Router_Route_Regex, _forward(), and Zend_Paginator in
>> Zend 1.7.5 ?
>>
>
>
--
View this message in context: http://www.nabble.com/Paginator-throws-error-%22Reversed-route-is-not-specified%22-when-using-Zend_Controller_Router_Route_Regex-tp22738473p22820161.html
Sent from the Zend MVC mailing list archive at Nabble.com.