/**
* Execute the action.
*/
public function execute()
{
// get parameters
$this->currentTheme = $this->getParameter('theme', 'string');
// does the item exist
if ($this->currentTheme !== null && BackendExtensionsModel::existsTheme($this->currentTheme)) {
parent::execute();
$this->loadData();
$this->loadDataGridTemplates();
$this->parse();
$this->display();
} else {
// no item found, redirect to index, because somebody is f*****g with our url
$this->redirect(BackendModel::createURLForAction('Themes') . '&error=non-existing');
}
}