【发布时间】:2012-07-13 17:05:27
【问题描述】:
我正在尝试创建一个新模块 (joomla),它将显示来自同一服务器上外部数据库的同一类别的文章。 我正在尝试修改使用内部表来解决问题的本机 joomla 模块。 (内部表:_asso,外部表:_rsc)
我更改了该代码(本机模块)
$com_path = JPATH_SITE.'/components/com_content/';
这样
$com_path = '/homez.420/kmxsiksf/rsc/components/com_content/helpers/route.php';
但我收到了这个错误:
致命错误: require_once() [function.require]: 无法打开所需的 '/homez.420/AAAAAA/rsc/components/com_cont ent/helpers/route.phprouter.php' (include_path ='.:/usr/local/lib/php') 在第 14 行的 /homez.420/AAAAAA/asso/modules/mod_articles_category/helper.php 中
我是不是弄错了,或者 .Htaccess 或 Joomla 中的某个地方是否有安全措施禁止模块显示来自外部表的类别或模块?
谢谢!
Ps : 原生模块代码是这样开始的:
defined('_JEXEC') or die;
$com_path = JPATH_SITE.'/components/com_content/';
require_once $com_path.'router.php';
require_once $com_path.'helpers/route.php';
JModelLegacy::addIncludePath($com_path . '/models', 'ContentModel');
非常感谢!
【问题讨论】:
标签: php joomla path phpmyadmin joomla2.5