function showForm() {
// Get the $articleType and articleAlias
$this->getFormField('articleType');
$this->getFormField('articleAlias');
$document = JFactory::getDocument();
$viewType = $document->getType();
$viewname = "ArticleForm";
# instantiate the view object
$view = $this->getView($viewname, $viewType);
# set the model name
$formArticleModel = 'formArticle';
# instantiate the named model(s)
$formArticleModel = $this->getModel('formArticle');
# assign the model to the view (as an object variable)
$view->assign('formArticleModel', $formArticleModel);
# assign the form data to the view (as an array variable)
$view->assign('form_data', $this->form_data);
if (count($this->form_validation_errors)) {
// we were returned here by validateForm()
$view->assign('form_validation_errors', $this->form_validation_errors);
}
$view->setLayout('form', true);
$view->display();
}