Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 致命错误:调用joomla中未定义的方法JToolbarHelper::deleteListX()_Php_Joomla - Fatal编程技术网

Php 致命错误:调用joomla中未定义的方法JToolbarHelper::deleteListX()

Php 致命错误:调用joomla中未定义的方法JToolbarHelper::deleteListX(),php,joomla,Php,Joomla,此语法中的错误是什么根据,类JToolBarHelper在中定义 但是,该类中没有此类方法。检查提交历史记录显示该方法已在中删除 因此,如果您遇到此错误,那么您的代码是为较旧版本的Joomla编写的 deleteListX的代码如下: protected function addToolBar() { JToolBarHelper::title(JText::_('COM_HELLOWORLD_MANAGER_HELLOWORLDS'), 'helloworld');

此语法中的错误是什么根据,类JToolBarHelper在中定义

但是,该类中没有此类方法。检查提交历史记录显示该方法已在中删除

因此,如果您遇到此错误,那么您的代码是为较旧版本的Joomla编写的

deleteListX
的代码如下:

protected function addToolBar() 
{
    JToolBarHelper::title(JText::_('COM_HELLOWORLD_MANAGER_HELLOWORLDS'), 'helloworld');
    JToolBarHelper::deleteListX('', 'helloworlds.delete');
    JToolBarHelper::editListX('helloworld.edit');
    JToolBarHelper::addNewX('helloworld.add');
}
如您所见,它只是包装对
deleteList
的调用,该调用定义为

/**
 * Writes a common 'delete' button for a list of records.   
 * Extended version of deleteList() calling hideMainMenu() before Joomla.submitbutton().    
 *  
 * @param   string $msg Postscript for the 'are you sure' message.  
 * @param   string $task An override for the task.  
 * @param   string $alt An override for the alt text.   
 * @since   1.0     
 * @deprecated  
 */     
 static function deleteListX($msg = '', $task = 'remove', $alt = 'JTOOLBAR_DELETE')     
 {  
    self::deleteList($msg, $task, $alt);    
 }
这样你就可以替换你的

/**
* Writes a common 'delete' button for a list of records.
*
* @param    string $msg Postscript for the 'are you sure' message.
* @param    string $task An override for the task.
* @param    string $alt An override for the alt text.
* @since    1.0
*/
public static function deleteList($msg = '', $task = 'remove', $alt = 'JTOOLBAR_DELETE')
直拨电话

JToolBarHelper::deleteListX('', 'helloworlds.delete');
请注意,
editListX
addNewX
也已被删除。所以你会得到同样的错误。检查删除的源代码并根据需要调整方法。

根据,类JToolBarHelper在中定义

但是,该类中没有此类方法。检查提交历史记录显示该方法已在中删除

因此,如果您遇到此错误,那么您的代码是为较旧版本的Joomla编写的

deleteListX
的代码如下:

protected function addToolBar() 
{
    JToolBarHelper::title(JText::_('COM_HELLOWORLD_MANAGER_HELLOWORLDS'), 'helloworld');
    JToolBarHelper::deleteListX('', 'helloworlds.delete');
    JToolBarHelper::editListX('helloworld.edit');
    JToolBarHelper::addNewX('helloworld.add');
}
如您所见,它只是包装对
deleteList
的调用,该调用定义为

/**
 * Writes a common 'delete' button for a list of records.   
 * Extended version of deleteList() calling hideMainMenu() before Joomla.submitbutton().    
 *  
 * @param   string $msg Postscript for the 'are you sure' message.  
 * @param   string $task An override for the task.  
 * @param   string $alt An override for the alt text.   
 * @since   1.0     
 * @deprecated  
 */     
 static function deleteListX($msg = '', $task = 'remove', $alt = 'JTOOLBAR_DELETE')     
 {  
    self::deleteList($msg, $task, $alt);    
 }
这样你就可以替换你的

/**
* Writes a common 'delete' button for a list of records.
*
* @param    string $msg Postscript for the 'are you sure' message.
* @param    string $task An override for the task.
* @param    string $alt An override for the alt text.
* @since    1.0
*/
public static function deleteList($msg = '', $task = 'remove', $alt = 'JTOOLBAR_DELETE')
直拨电话

JToolBarHelper::deleteListX('', 'helloworlds.delete');
请注意,
editListX
addNewX
也已被删除。所以你会得到同样的错误。检查删除的源代码并根据需要调整方法。

根据,类JToolBarHelper在中定义

但是,该类中没有此类方法。检查提交历史记录显示该方法已在中删除

因此,如果您遇到此错误,那么您的代码是为较旧版本的Joomla编写的

deleteListX
的代码如下:

protected function addToolBar() 
{
    JToolBarHelper::title(JText::_('COM_HELLOWORLD_MANAGER_HELLOWORLDS'), 'helloworld');
    JToolBarHelper::deleteListX('', 'helloworlds.delete');
    JToolBarHelper::editListX('helloworld.edit');
    JToolBarHelper::addNewX('helloworld.add');
}
如您所见,它只是包装对
deleteList
的调用,该调用定义为

/**
 * Writes a common 'delete' button for a list of records.   
 * Extended version of deleteList() calling hideMainMenu() before Joomla.submitbutton().    
 *  
 * @param   string $msg Postscript for the 'are you sure' message.  
 * @param   string $task An override for the task.  
 * @param   string $alt An override for the alt text.   
 * @since   1.0     
 * @deprecated  
 */     
 static function deleteListX($msg = '', $task = 'remove', $alt = 'JTOOLBAR_DELETE')     
 {  
    self::deleteList($msg, $task, $alt);    
 }
这样你就可以替换你的

/**
* Writes a common 'delete' button for a list of records.
*
* @param    string $msg Postscript for the 'are you sure' message.
* @param    string $task An override for the task.
* @param    string $alt An override for the alt text.
* @since    1.0
*/
public static function deleteList($msg = '', $task = 'remove', $alt = 'JTOOLBAR_DELETE')
直拨电话

JToolBarHelper::deleteListX('', 'helloworlds.delete');
请注意,
editListX
addNewX
也已被删除。所以你会得到同样的错误。检查删除的源代码并根据需要调整方法。

根据,类JToolBarHelper在中定义

但是,该类中没有此类方法。检查提交历史记录显示该方法已在中删除

因此,如果您遇到此错误,那么您的代码是为较旧版本的Joomla编写的

deleteListX
的代码如下:

protected function addToolBar() 
{
    JToolBarHelper::title(JText::_('COM_HELLOWORLD_MANAGER_HELLOWORLDS'), 'helloworld');
    JToolBarHelper::deleteListX('', 'helloworlds.delete');
    JToolBarHelper::editListX('helloworld.edit');
    JToolBarHelper::addNewX('helloworld.add');
}
如您所见,它只是包装对
deleteList
的调用,该调用定义为

/**
 * Writes a common 'delete' button for a list of records.   
 * Extended version of deleteList() calling hideMainMenu() before Joomla.submitbutton().    
 *  
 * @param   string $msg Postscript for the 'are you sure' message.  
 * @param   string $task An override for the task.  
 * @param   string $alt An override for the alt text.   
 * @since   1.0     
 * @deprecated  
 */     
 static function deleteListX($msg = '', $task = 'remove', $alt = 'JTOOLBAR_DELETE')     
 {  
    self::deleteList($msg, $task, $alt);    
 }
这样你就可以替换你的

/**
* Writes a common 'delete' button for a list of records.
*
* @param    string $msg Postscript for the 'are you sure' message.
* @param    string $task An override for the task.
* @param    string $alt An override for the alt text.
* @since    1.0
*/
public static function deleteList($msg = '', $task = 'remove', $alt = 'JTOOLBAR_DELETE')
直拨电话

JToolBarHelper::deleteListX('', 'helloworlds.delete');

请注意,
editListX
addNewX
也已被删除。所以你会得到同样的错误。检查删除的源代码并根据需要调整方法。

错误显示“
未定义…deleteListX()
”-您实现了该方法吗?您至少应该添加
JToolBarHelper
的定义。错误为“
未定义…deleteListX()
”-您实现了该方法吗?您至少应该添加
JToolBarHelper
的定义。错误为“
未定义…deleteListX()
”-您实现了该方法吗?您至少应该添加
JToolBarHelper
的定义。错误为“
未定义…deleteListX()
”-您实现了该方法吗?您至少应该添加
JToolBarHelper
的定义。我使用DeleteList,但它不起作用。。。。。它不执行任何任务。。。。。。。。。我应该做什么?vishal你应该做的是找出它为什么不执行任何任务。在调试器中设置断点并逐步执行代码。@vishal,可能存在java脚本问题,在我的情况下,没有选中它复选框,导致javascript错误,您需要在表单标记中添加id=“adminForm”以使其正常工作。让我知道它是否对您有效我使用DeleteList,但它不起作用。。。。。它不执行任何任务。。。。。。。。。我应该做什么?vishal你应该做的是找出它为什么不执行任何任务。在调试器中设置断点并逐步执行代码。@vishal,可能存在java脚本问题,在我的情况下,没有选中它复选框,导致javascript错误,您需要在表单标记中添加id=“adminForm”以使其正常工作。让我知道它是否对您有效我使用DeleteList,但它不起作用。。。。。它不执行任何任务。。。。。。。。。我应该做什么?vishal你应该做的是找出它为什么不执行任何任务。在调试器中设置断点并逐步执行代码。@vishal,可能存在java脚本问题,在我的情况下,没有选中它复选框,导致javascript错误,您需要在表单标记中添加id=“adminForm”以使其正常工作。让我知道它是否对您有效我使用DeleteList,但它不起作用。。。。。它不执行任何任务。。。。。。。。。我应该做什么?vishal你应该做的是找出它为什么不执行任何任务。在调试器中设置断点并逐步执行代码。@vishal,可能存在java脚本问题,在我的情况下,没有选中它复选框,导致javascript错误,您需要在表单标记中添加id=“adminForm”以使其正常工作。如果对你有用,请告诉我