【问题标题】:module to display external db articles category显示外部数据库文章类别的模块
【发布时间】: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


    【解决方案1】:

    要回答所提出的问题,没有 Joomla 安全功能可以防止显示您提到的任何内容。我无法谈论您的 .htaccess 设置,但这是非常值得怀疑的。

    【讨论】:

    • 非常感谢GDP,这是一个好新的!我一直在努力!祝你有美好的一天!
    猜你喜欢
    • 1970-01-01
    • 2021-12-24
    • 2014-10-03
    • 2019-10-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多