Skip to content

Commit

Permalink
added view toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoOnTheEarth committed Feb 21, 2014
1 parent c920bde commit 6e65691
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions administrator/components/com_blog/views/item/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,23 @@ public function display($tpl = null)
$this->form = $this->get('Form');
$this->item = $this->get('Item');

$this->setToolBar();

return parent::display($tpl);
}

/**
* Setup page title and toolbar.
*
* @return void
*/
public function setToolBar()
{
JToolbarHelper::title('Edit blog item');

JToolbarHelper::apply('item.apply');
JToolbarHelper::save('item.save');
JToolbarHelper::save2new('item.save2new');
JToolbarHelper::cancel('item.cancel');
}
}

0 comments on commit 6e65691

Please sign in to comment.