Файловый менеджер - Редактировать - /home/lmsyaran/public_html/administrator/components/com_sppagebuilder/editor/traits/PageContentById.php
Назад
<?php /** * Sample trait for managing API endpoints. */ trait PageContentById { public function pageContentById() { $method = $this->getInputMethod(); $this->checkNotAllowedMethods(['POST', 'PUT', 'DELETE', 'PATCH'], $method); $this->getPageContentById(); } public function getPageContentById() { $id = $this->getInput('id', null, 'INT'); $model = $this->getModel('Editor'); if (!$id) { $response['message'] = 'Missing Page ID'; $this->sendResponse($response, 400); } $content = $model->getPageContent($id); if (empty($content)) { $this->sendResponse(['message' => 'Requesting page not found!'], 404); } $content = ApplicationHelper::preparePageData($content); $content->url = SppagebuilderHelperRoute::getFormRoute($content->id, $content->language); unset($content->content); $this->sendResponse($content); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.24 |
proxy
|
phpinfo
|
Настройка