我安装了Joomla的Jumi分机。
我上传了php文件和一个css文件,我需要添加到网站。
例如,我给它们取了路径名:
components/com_jumi/order_confirm.php
components/com_jumi/review.php
components/com_jumi/includes/formValidations.php
components/com_jumi/includes/config.php现在,文件order_confirm.php有了要求formValidation.php文件的代码:
require_once ("includes/formValidations.php");但是,当我创建指向php文件review.php的新菜单项时,它会输出以下警告和错误:
Warning: require_once(includes/formValidations.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/37/9463737/html/components/com_jumi/views/application/view.html.php(40) : eval()'d code on line 3
Fatal error: require_once() [function.require]: Failed opening required 'includes/formValidations.php' (include_path='.:/usr/local/php5_3/lib/php') in /home/content/37/9463737/html/components/com_jumi/views/application/view.html.php(40) : eval()'d code on line 3这是否意味着我在Jumi中为每个文件编写的路径不是这些文件的实际路径?
任何帮助都是非常感谢的!
谢谢,艾尔
发布于 2015-04-19 04:44:15
我认为这取决于您如何使用jumi扩展。1.如果您将其用作插件,则必须在插件管理器/系统- Jumi 2中设置“默认绝对Jumi路径”选项。
https://stackoverflow.com/questions/29725581
复制相似问题