Deepak Shrestha wrote:
>
> 1. Where should be the paginator control file (mypaginator.phtml)?
> currently my paginator control phtml file is in the same view script
> as my index.phtml.
>
In the same directory I think you mean.
Deepak Shrestha wrote:
>
> 2. Currently I have managed to display the paginator control but when
> I click next, my url changes from http://myweb/ to
> http://myweb/index/index/page/2. Why there are two index in my url?
> Isn't that it should be http://myweb/page/2 only?
>
public function setupRoutes(Zend_Controller_Front $frontController)
{
$router = $frontController->getRouter();
$router->addRoute(
'news',
new Zend_Controller_Router_Route('news/:page',
array('module'=>'news', 'page' => 1, 'controller' => 'index', 'action'
=> 'index'))
);
}
this is giving me something like http//localhost/news/page/2 ('page' => 1 is
set 'cause I want to start at this page :-))
Deepak Shrestha wrote:
>
> 3. How to track page request from paginator control through URL?
> Documentation recommends (although not necessary) the use of
> 'Zend_Controller_Router_Interface'. Can somebody give me some hints on
> how to use this? Which is better?
>
I think see point 2
-----
http://www.phpscriptor.com/ http://www.phpscriptor.com/
--
View this message in context:
http://www.nabble.com/Another-Zend_paginator-Question-tp21980514p21982354.html
Sent from the Zend Framework mailing list archive at Nabble.com.