我正在用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
答案 0 :(得分:0)
我发现了什么问题...在视图文件夹文件中,view.html.php必须重命名为view.raw.php