0

我正在使用 AJAX 创建一个组件,单击提交按钮后jos-Error: Unable to load renderer class出现错误。我的猜测是控制器找不到视图:

public function savex()
{
    JRequest::setVar('view', 'komentarai');

    parent::display();
}

但我不确定这是否正确。

还有一些我得到的其他错误(更具体的控制器)

JController -> execute() @ C:\xampp\htdocs\components\com_siena\siena.php:20
SienaController -> savex() @ C:\xampp\htdocs\libraries\joomla\application\component\controller.php:761
JController -> display() @ C:\xampp\htdocs\components\com_siena\controller.php:26

错误消息的完整列表:

jos-Error: Unable to load renderer class

JSite -> dispatch() @ C:\xampp\htdocs\index.php:42
JComponentHelper :: renderComponent() @ C:\xampp\htdocs\includes\application.php:197
JComponentHelper :: executeComponent() @ C:\xampp\htdocs\libraries\joomla\application\component\helper.php:351
require_once() @ C:\xampp\htdocs\libraries\joomla\application\component\helper.php:383
JController -> execute() @ C:\xampp\htdocs\components\com_siena\siena.php:20
SienaController -> savex() @ C:\xampp\htdocs\libraries\joomla\application\component\controller.php:761
JController -> display() @ C:\xampp\htdocs\components\com_siena\controller.php:26
JController -> getView() @ C:\xampp\htdocs\libraries\joomla\application\component\controller.php:677
JError :: raiseError() @ C:\xampp\htdocs\libraries\joomla\application\component\controller.php:903
JError :: raise() @ C:\xampp\htdocs\libraries\joomla\error\error.php:251
JError :: throwError() @ C:\xampp\htdocs\libraries\joomla\error\error.php:176
call_user_func_array() @ C:\xampp\htdocs\libraries\joomla\error\error.php:214
JError :: handleCallback()
call_user_func() @ C:\xampp\htdocs\libraries\joomla\error\error.php:765
plgSystemRedirect :: handleError()
JError :: customErrorPage() @ C:\xampp\htdocs\plugins\system\redirect\redirect.php:109
JDocumentError -> render() @ C:\xampp\htdocs\libraries\joomla\error\error.php:798
JDocumentError -> _loadTemplate() @ C:\xampp\htdocs\libraries\joomla\document\error\error.php:107
require_once() @ C:\xampp\htdocs\libraries\joomla\document\error\error.php:135
Gantry -> displayModules() @ C:\xampp\htdocs\templates\gantry\error.php:40
GantryModulesRenderer :: display() @ C:\xampp\htdocs\libraries\gantry\core\gantry.class.php:867
GantryFeatureDropdownMenu -> render() @ C:\xampp\htdocs\libraries\gantry\core\renderers\gantrymodulesrenderer.class.php:65
JDocument -> loadRenderer() @ C:\xampp\htdocs\templates\gantry\features\dropdownmenu.php:50
JError :: raiseError() @ C:\xampp\htdocs\libraries\joomla\document\document.php:926
JError :: raise() @ C:\xampp\htdocs\libraries\joomla\error\error.php:251
4

1 回答 1

0

我发现出了什么问题......在views文件夹文件view.html.php必须重命名为view.raw.php

于 2013-08-17T11:20:36.583 回答