public function deleteAction()
    {
        $themeId = $this->getEvent()->getRouteMatch()->getParam('themeId');
        $theme = $this->getAdminThemeService()->findById($themeId);
        $title = $theme->getTitle();
        $this->getAdminThemeService()->remove($theme);
        $this->flashMessenger()->addMessage('The theme "'.$title.'"has been deleted');

        return $this->redirect()->toRoute('admin/playgrounddesign_themeadmin');
    }
public function deleteAction()
    {
        $themeId = $this->getEvent()->getRouteMatch()->getParam('themeId');
        $theme = $this->getAdminThemeService()->findById($themeId);
        $title = $theme->getTitle();
        $this->getAdminThemeService()->remove($theme);
        $this->flashMessenger()->addMessage('The theme "'.$title.'"has been deleted');

        return $this->redirect()->toRoute('admin/playgrounddesign_themeadmin');
    }
public function deleteAction ( ) { $ themeId = $ this -> getEvent ( ) -> getRouteMatch ( ) -> getParam ( 'themeId' ) ; $ theme = $ this -> getAdminThemeService ( ) -> findById ( $ themeId ) ; $ title = $ theme -> getTitle ( ) ; $ this -> getAdminThemeService ( ) -> remove ( $ theme ) ; $ this -> flashMessenger ( ) -> addMessage ( 'The theme "' . $ title . '"has been deleted' ) ; return $ this -> redirect ( ) -> toRoute ( 'admin/playgrounddesign_themeadmin' ) ; }
Suppresion d'un theme

@redirect vers la liste des theme
Suppresion d un theme