0

我正在尝试创建一个新模块(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');

非常感谢!

4

1 回答 1

1

To answer the asked question, there is no Joomla security to prevent display of anything that you mention. I can't speak to your .htaccess settings, but that's highly doubtful.

于 2012-07-13T17:13:12.053 回答