脚本宝典收集整理的这篇文章主要介绍了php – 在Zend Framework 1.10中加载“自定义资源”,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
看起来ZF正在我设置的“自定义资源”路径中寻找应用程序资源:pluginpaths.App_Application_Resource =“App / Application / Resource.
有什么方法可以避免这种情况!? (提前感谢你的时间)
application.ini: resources.locale.default = sq_AL resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers" resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts" resources.frontController.throwExceptions = 0 ; VIEW & HTML Markup Options resources.view.doctyPE = "HTML5" resources.view.language = "en" resources.view.setSeparator=" - " resources.view.helperPath.View_Helper = APPLICATION_PATH "/views/helpers" resources.view[] = ; custom resources **pluginpaths.App_Application_Resource = "App/Application/Resource"**
在库/ App / Application / Resource / Cache我有一个类“App_Application_Resource_Cache扩展Zend_Application_Resource_ResourceAbstract”,我需要缓存.
问题是,现在在第一页我有很多警告,如:
Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/usr/share/PHP/App/Application/Resource/Locale.PHP) is not wIThin the Allowed path(s): (/VAR/home//httpdocs:/tmp:/var/home/) in /var/home//library/Zend/Loader.PHP on line 190 Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/usr/lib64/PHP/modules/App/Application/Resource/Locale.PHP) is not within the allowed path(s): (/var/home//httpdocs:/tmp:/var/home/) in /var/home//library/Zend/Loader.PHP on line 190 Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/usr/share/PHP/App/Application/Resource/Frontcontroller.PHP) is not within the allowed path(s): (/var/home//httpdocs:/tmp:/var/home/) in /var/home//library/Zend/Loader.PHP on line 190 Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/usr/lib64/PHP/modules/App/Application/Resource/Frontcontroller.PHP) is not within the allowed path(s): (/var/home//httpdocs:/tmp:/var/home/) in /var/home//library/Zend/Loader.PHP on line 190 Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/usr/share/PHP/App/Application/Resource/Layout.PHP) is not within the allowed path(s): (/var/home//httpdocs:/tmp:/var/home/) in /var/home//library/Zend/Loader.PHP on line 190 Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/usr/lib64/PHP/modules/App/Application/Resource/Layout.PHP) is not within the allowed path(s): (/var/home//httpdocs:/tmp:/var/home/) in /var/home//library/Zend/Loader.PHP on line 190 Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/usr/share/PHP/./views/helpers/Doctype.PHP) is not within the allowed path(s): (/var/home//httpdocs:/tmp:/var/home/) in /var/home//library/Zend/Loader.PHP on line 190 Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/usr/lib64/PHP/modules/./views/helpers/Doctype.PHP) is not within the allowed path(s): (/var/home//httpdocs:/tmp:/var/home/) in /var/home//library/Zend/Loader.PHP on line 190 Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/usr/share/PHP/./views/helpers/HeadMeta.PHP) is not within the allowed path(s): (/var/home//httpdocs:/tmp:/var/home/) in /var/home//library/Zend/Loader.PHP on line 190 Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/usr/lib64/PHP/modules/./views/helpers/HeadMeta.PHP) is not within the allowed path(s): (/var/home//httpdocs:/tmp:/var/home/) in /var/home//library/Zend/Loader.PHP on line 190 Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/usr/share/PHP/./views/helpers/HeadTitle.PHP) is not within the allowed path(s): (/var/home//httpdocs:/tmp:/var/home/) in /var/home//library/Zend/Loader.PHP on line 190
万一有人需要它,在引导程序中这是Autoload-er
<?PHP class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { PRotected function _initAutoload() { $autoloader = new Zend_Application_Module_Autoloader( array( 'namespace' => 'App','basePath' => dirname(__FILE__),) ); return $autoloader; }
以上是脚本宝典为你收集整理的php – 在Zend Framework 1.10中加载“自定义资源”全部内容,希望文章能够帮你解决php – 在Zend Framework 1.10中加载“自定义资源”所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。