How does Zend Framework 2 render partials inside a module?

前端 未结 2 1861
有刺的猬
有刺的猬 2021-02-08 06:36

I\'ve got something like this for my directory structure inside a module:

Api
├── Module.php
├── config
│   └── module.config.php
├── src
│   └── ( ..etc ..)
└──         


        
2条回答
  •  情话喂你
    2021-02-08 06:58

    Have you tried to include the name of your module in the called to the View Helper partial()?

    http://packages.zendframework.com/docs/latest/manual/en/zend.view.helpers.html#zend.view.helpers.initial.partial.modules

    partial('pager.phtml', 'list', $pagerData) ?>
    

提交回复
热议问题