Open chocochaos opened 10 years ago
+1
+1
+1
+1
Try adding invokables declaration:
'zfctwig' => [
'helper_manager' => [
'configs' => [
'Zend\Navigation\View\HelperConfig',
],
'invokables' => [
'partial' => 'Zend\View\Helper\Partial',
]
],
]
@merlinus1 Thank you for tip! Works.
Solution from @merlinus1 not working anymore.
Anyone with problem try this:
'zfctwig' => [
'helper_manager' => [
'invokables' => [
'paginationControl' => 'Zend\View\Helper\PaginationControl',
],
],
],
@saadhre this is the correct config:
'helper_manager' => [
'invokables' => [
'partial' => 'Zend\View\Helper\Partial',
'paginationControl' => 'Zend\View\Helper\PaginationControl',
]
],
@Gamempire Strange, I have partial helper loaded by default...
I don't know, without that I receive the error 'can't find template...'
Pagination controls worked fine with ZfcTwig 1.1.5. However, when I update to ZfcTwig 1.2.0 or higher the partial template appears not to be rendering any more.
Code in the template to invoke the pagination control:
In partial/paginator.twig:
This is what it looks like with ZfcTwig 1.1.5:
This is what it looks like with ZfcTwig 1.2.0:
I have tried these tests with several versions of twig and zend framework, none seem to work properly with ZfcTwig 1.2.0.