function destroyAction() { $screen = new Screen($this->args[1]); if ($screen->destroy()) { $this->flash('Screen removed successfully.'); redirect_to(ADMIN_URL . '/screens'); } else { $this->flash('There was an error removing the screen.', 'error'); redirect_to(ADMIN_URL . '/screens/show/' . $this->args[1]); } }