[fw-general] Re: [ZF2] Get paginator output in a non-view context

2013-05-27 Thread Razorblade
Ok, solved by using the application renderer service 'Zend\View\Renderer\PhpRenderer'. Cheers - Sergio Rinaudo's Blog -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/ZF2-Get-paginator-output-in-a-non-view-context-tp4660107p4660116.html Sent from th

Re: [fw-general] Re: [ZF2] Get paginator output in a non-view context

2013-05-27 Thread Marco Pivetta
The router is null because the view helper is not connected to an MVC application - that's quite normal You're trying to render a page alone with a completely detached PhpRenderer, which basically has nothing initialized :) Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/

[fw-general] Re: [ZF2] Get paginator output in a non-view context

2013-05-27 Thread Razorblade
Hi Marco, I added the Resolver as described in the documentation http://framework.zend.com/manual/2.0/en/modules/zend.view.renderer.php-renderer.html this is my code $renderer = new PhpRenderer(); $resolver = new Resolver\AggregateResolver(); $renderer->setR