当前位置:Gxlcms > PHP教程 > 分页类解决思路

分页类解决思路

时间:2021-07-01 10:21:17 帮助过:27人阅读

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

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

人气教程排行