Deepak Shrestha wrote:
> 
> You are PHPScriptor. Arn't you? I like your answering style :-)
> 

Yes i'm. Logged in with the wrong account. Lol, I didn't know I had an
answering style :-)


Deepak Shrestha wrote:
> 
>> 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 :-))
>>
>>
> Where this function should go?
> bootstrap.php?
> In the controller?
> model?
> 

Yes in the bootstrap.


-----
visit my website at  http://www.phpscriptor.com/ http://www.phpscriptor.com/ 
-- 
View this message in context: 
http://www.nabble.com/Another-Zend_paginator-Question-tp21980514p21991238.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to