Файловый менеджер - Редактировать - /home/skymarketplace/public_html/uploads/NotificationController.php.tar
Назад
home/skymarketplace/public_html/controllers/NotificationController.php 0000644 00000001366 15003700431 0022565 0 ustar 00 <?php namespace App\Controllers; use App\models\Notification; use App\helpers\Response; class NotificationController { protected $notification; public function __construct() { $this->notification = new Notification(); } public function delete($id) { if (!$id || !is_numeric($id)) { return Response::json(['status' => 'error', 'message' => 'Invalid notification ID']); } $result = $this->notification->deleteNotification($id); if ($result) { return Response::json(['status' => 'success', 'message' => 'Notification deleted']); } return Response::json(['status' => 'error', 'message' => 'Failed to delete']); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.31 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка