Updated abstract controller to allow common CRUD operations, errors not yet testet

This commit is contained in:
2019-06-03 15:29:08 +02:00
parent 319911d52f
commit 1b43ab8356
5 changed files with 70 additions and 125 deletions

View File

@@ -60,30 +60,8 @@ abstract class AbstractClubsViewSingle extends HtmlView
parent::display($tpl);
}
// protected abstract function getViewName();
protected abstract function getControllerName();
// protected function getModelName()
// {
// $name = $this->getViewName();
// return $this->capitalize($name);
// }
// protected function getModelClass()
// {
// return 'Clubs' . $this->getModelName();
// }
// private function capitalize($s)
// {
// $first = substr($s, 0, 1);
// $rest = substr($s, 1);
// return strtoupper($first) . $rest;
// }
// protected abstract function getElementController();
/**
* @return AbstractCommonClubsModelFactory
*/