【发布时间】:2012-07-30 02:57:20
【问题描述】:
我在 joomla 1.5 组件的工具栏菜单中添加工具栏添加按钮时遇到问题。 我需要以标准方式添加一个添加自定义按钮,因此我的按钮被添加到我的菜单中,但它不起作用我需要一个功能来帮助我从按钮中获取参数,例如我的任务(啊啊)。
/*
ToolBarHelper::custom('aaaa', 'new', 'new', 'Add Article', 'add_article', false);
*/
这是我如何获取任务参数的整个工具栏类。
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
/**
* @package Joomla
* @subpackage Config
*/
class TOOLBAR_video
{
function _DEFAULT() {
/*
* DEVNOTE: This should make sense by itself now...
*/
JToolBarHelper::title( JText::_( 'Video Manager' ), 'generic.png' );
JToolBarHelper::custom('aaaa', 'new', 'new', 'Add Article', 'add_article', false);
JToolBarHelper::help( 'screen.video' );
);
}
}
【问题讨论】:
标签: php joomla components toolbar