This question is a "continuation" of Joomla!2.5 Toolbar Not Working, since the correction of an error led to something completely new I can't seem to wrap around my head, since I'm new to Joomla and I got nearly zero training in this new job.
My toolbar in this component has 3 buttons:
admin/views/disciplinas/view.html.php
protected function addToolBar(){
$input = JFactory::getApplication()->input;
$input->set('hidemainmenu', true);
JToolBarHelper::title('Disciplinas');
JToolBarHelper::save2new('disciplinas.save');
JToolBarHelper::deleteList('', 'disciplinas.delete');
JToolBarHelper::cancel('disciplinas.cancel', 'Voltar');
}
The model disciplinas is a simple JAdminForm with no functions other than getTable
and getForm
, both seemingly working fine.
When using the toolbar, though, only the save2new
button works. Both deleteList
and cancel
just "reload" the page, when they should respectively delete a register from the list, and come back to reforcodigitals.