Back to FormView class

Method initializeView

protected void
initializeView
()
Prepare view data
Returns
  • void
Class: FormView
Project: Joomla

Method initializeView - Source code

/**
 * Prepare view data
 *
 * @return  void
 */
protected function initializeView()
{
    $this->form = $this->get('Form');
    $this->item = $this->get('Item');
    $this->state = $this->get('State');
    // Set default toolbar title
    if ($this->item->id) {
        $this->toolbarTitle = Text::_(strtoupper($this->option . '_MANAGER_' . $this->getName() . '_EDIT'));
    } else {
        $this->toolbarTitle = Text::_(strtoupper($this->option . '_MANAGER_' . $this->getName() . '_NEW'));
    }
}