/**
 * Title cell.
 * For the title and toolbar to be rendered correctly,
 * this title function must be called before the starttable function and the toolbars icons
 * this is due to the nature of how the css has been used to position the title in respect to the toolbar.
 *
 * @param   string  $title  The title.
 * @param   string  $icon   The space-separated names of the image.
 *
 * @return  void
 *
 * @since   1.5
 */
public static function title($title, $icon = 'generic.png')
{
    $layout = new FileLayout('joomla.toolbar.title');
    $html = $layout->render(array('title' => $title, 'icon' => $icon));
    $app = Factory::getApplication();
    $app->JComponentTitle = $html;
    $title = strip_tags($title) . ' - ' . $app->get('sitename');
    if ($app->isClient('administrator')) {
        $title .= ' - ' . Text::_('JADMINISTRATION');
    }
    Factory::getDocument()->setTitle($title);
}