public function postAction($args = []) { $poster = new ItemSetPoster(); $poster->parse(); $itemSet = $poster->getItemSet(); if (!empty($itemSet->getBlocks())) { $itemSet->save(); header('Location: ' . Controller::generateURL('itemset', 'view', ['id' => $itemSet->getId()])); } else { header('Location: ' . Controller::generateURL('itemset', 'create')); } }