You need to set a resolver ( see https://github.com/zendframework/zf2/blob/release-2.0.0/library/Zend/View/Renderer/PhpRenderer.php#L133-L144)
The resolver defines how view names are computed into view scripts to be included. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 24 May 2013 16:27, Razorblade <[email protected]> wrote: > Hi All, > I'm trying to get pagination output from an object, outside the view > context, > this is my code: > > $renderer = new PhpRenderer(); > $output = $renderer->paginationControl($paginator 'Sliding', > array('myscript', 'Mymodule'), array('route' => 'application/paginator') ); > > > and this is the exception raised: > > Zend\View\Renderer\PhpRenderer::render: Unable to render template > "myscript"; resolver could not resolve to a file > > How to make the resolver find the template? > > Thanks > > > > ----- > 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-tp4660107.html > Sent from the Zend Framework mailing list archive at Nabble.com. > > -- > List: [email protected] > Info: http://framework.zend.com/archives > Unsubscribe: [email protected] > > >
