Home  >  Article  >  Backend Development  >  分页类解决思路

分页类解决思路

WBOY
WBOYOriginal
2016-06-13 12:55:52598browse

分页类
Zend_View_Helper_PaginationControl::setDefaultViewPartial('my_pagination_control.phtml');

这个my_pagination_control.phtml这个视图文件能不能指定一个目录
而不是每个模块都在模块自己的views/script下查找?
------解决方案--------------------
当然,可以。
$this->view->addScriptPath(PAGE_DIR); 
------解决方案--------------------
最简单的方式就是在action里,直接加。当然还有很多方式,有空可以研究一下

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn