AdminModule/presenters/LanguagesPresenter.php 1 location
|
@@ 254-262 (lines=9) @@
|
| 251 |
|
} |
| 252 |
|
} |
| 253 |
|
|
| 254 |
|
public function actionDeleteLanguage($id) |
| 255 |
|
{ |
| 256 |
|
$this->lang = $this->em->find("WebCMS\Entity\Language", $id); |
| 257 |
|
$this->em->remove($this->lang); |
| 258 |
|
$this->em->flush(); |
| 259 |
|
|
| 260 |
|
$this->flashMessage('Language has been removed.', 'success'); |
| 261 |
|
$this->forward('Languages:default'); |
| 262 |
|
} |
| 263 |
|
|
| 264 |
|
public function renderUpdateLanguage($id) |
| 265 |
|
{ |
AdminModule/presenters/PagesPresenter.php 1 location
|
@@ 300-309 (lines=10) @@
|
| 297 |
|
} |
| 298 |
|
} |
| 299 |
|
|
| 300 |
|
public function actionDeletePage($id) |
| 301 |
|
{ |
| 302 |
|
$this->page = $this->em->find("WebCMS\Entity\Page", $id); |
| 303 |
|
$this->em->remove($this->page); |
| 304 |
|
$this->em->flush(); |
| 305 |
|
|
| 306 |
|
$this->flashMessage('Page has been removed.', 'success'); |
| 307 |
|
|
| 308 |
|
$this->forward('Pages:default'); |
| 309 |
|
} |
| 310 |
|
|
| 311 |
|
public function renderUpdatePage($id) |
| 312 |
|
{ |
AdminModule/presenters/UsersPresenter.php 1 location
|
@@ 171-180 (lines=10) @@
|
| 168 |
|
} |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
public function actionDeleteRole($id) |
| 172 |
|
{ |
| 173 |
|
$this->role = $this->em->find("WebCMS\Entity\Role", $id); |
| 174 |
|
$this->em->remove($this->role); |
| 175 |
|
$this->em->flush(); |
| 176 |
|
|
| 177 |
|
$this->flashMessage('Role has been removed.', 'success'); |
| 178 |
|
|
| 179 |
|
$this->forward('Users:roles'); |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
public function renderUpdateRole($id) |
| 183 |
|
{ |