3我有一个表格,我在我的网站上开发,但从joomla结构。在表单上,我尝试这样调用活动用户数据:
$user = JFactory::getUser();
echo "<p>Your name is {$user->name}, your email is {$user->email}, and your username is {$user->username}</p>";
但我得到:致命错误:在第38行的/home5/onlinepc/public_html/action/subs/custompcorder.php中找不到
我想在我的Joomla (3.3)视图文件- default.php中使用(jquery) jquery,请参见下面的代码。
但是,在调用此文件时,frontpage不显示图表,控制台在$(document).ready()函数行中显示错误“Uncaught.ready: Undefined不是函数”。
我怀疑我在default.php文件(?)中以错误的方式嵌入了$(Document)default.php()函数,但我不知道如何解决这个问题。有什么建议吗?
Joomla default.php视图文件:
<?php
// No direct access to this file
d
我使用的是Joomla 2.5.8和Yootheme。我有Widgetkit,它工作得很好,直到我安装了Page Peel和JO Social Networks Tabs。我一个接一个地禁用了它,但它不起作用,只有Page Peel和JO Social在一起工作。
我不知道在哪里添加这段代码:
// load jQuery, if not loaded before
if (!JFactory::getApplication()->get('jquery')) {
JFactory::getApplication()->set('jquery',
在以前的joomla版本中,以下代码可以为特色文章提供不同的内容:
<?php if (JRequest::getVar('view')=='featured') : ?>
STUFF FOR HOMEPAGE
<?php endif; ?>
<?php if (JRequest::getVar('view')!=='featured') : ?>
STUFF FOR ANY PAGES APART FROM HOMEPAGE
<?php endif; ?>
无论如何,...or
我在组件中创建了新的php文件。我想连接到Joomla数据库,但是连接未知。错误消息如下:
Fatal error: Class 'JFactory' not found in D:\www\Joomla1.5\components\com_hello\views\hello\tmpl\index.php on line 13
如何在公共场合使用JFactory::getDBO()?