Идеология Структуры Фреймворка MODx RevolutionAnother translations: into Hungarian. | Participants
|
- Statistics
- Participants
- Translate into Russian
- Translation result
- Translated in draft, editing and proof-reading required.
If you do not want to register an account, you can sign in with OpenID.
MODx Revolution Framework Structure Ideology | ||
The manager in MODx Revolution is structured like so. | Менеджер (Manager) в MODx Revolution структурирован следующим образом. | |
Controllers | ||
Templates | ||
Connectors | ||
Processors | ||
Controllers | ||
Controllers are the PHP pages loaded prior to rendering the page. They grab information and assign variables to Smarty. | Контроллеры (Controllers) - это PHP страницы, загружающиеся до рендеринга страницы. Они загружают информацию и присваивают переменные Smarty. | |
Controllers are abstracted in the MODx framework as "modAction". This way the user can create manager pages simply by creating the files and then creating a modAction object. Doing so will allow the developer to add controllers directly into the top menu. MODx also caches its action map ($modx->actionMap) for quick and easy redirection to the proper controller. | Контроллеры абстрагируются в рамках MODx Фреймворка как "modAction". Таким образом, пользователь может создать менеджер страниц просто путем создания файлов и затем создать modAction объекта. Это позволит разработчикам добавлять контроллеры непосредственно в верхнем меню. MODx также кэширует свои действия карты ($modx->actionMap) для быстрого и простого перехода на правильный контроллер. | |
Controllers never manipulate data - they simply fetch it. | Контроллеры никогда не манипулируют данными - они просто получают их. | |
Templates | ||
Templates are [http://smarty.php.net Smarty] templates that are primarily XHTML, Smarty tags, and a little JS here and there. They are used to separate code from content, and are loaded based upon their parallel controller. | Шаблоны - [http://smarty.php.net Smarty] шаблоны, которые являются главным образом XHTML, Smarty тегами, и небольшими JS тут и там. Они используются для того, чтобы отделить код от информационного наполнения, и их загрузка основана на их параллельном контроллере. | |
Connectors | ||
Connectors are isolated PHP scripts that all require the connectors/index.php file. They then forward data manipulation or remote data fetching requests to the processors, which then return it to the AJAX request made in the JS files. They determine the processor to load based on the $_REQUEST 'action' variable, specified in the JS request. | Конекторы изолированные PHP скрипты, которые требуют connectors/index.php файл. После этого они пересылают данные на обработку или удаленных выборок данных запросов к процессорам, которые возвращают AJAX запросы сделанные в JS файлах. Они определяют процессор, чтобы загрузиться на основании $_REQUEST 'action' переменной, определенной в запросе JS. | |
Connectors are locked down to receive requests only from authorized sources, to prevent internal hacking. | Конекторы заблокированы, чтобы получать запросы только из авторизованных источников, в целях предотвращения внутреннего взлома. | |
Processors | ||
Processors are the 'cogs' of MODx. They are called _only_ by connectors or controllers, and never accessed directly. They manipulate or fetch database records, and are isolated by the task what they perform (using CRUD structure) to allow for quick and easy debugging. | Процессоры - 'винтики' MODx. Их называют "called _only_ by" (вызываться только) соединители или контроллеры, и никогда не обращаются непосредственно. Они управляют или выбирают записи базы данных, и выполняют изолированые задачи (используя структуры CRUD), чтобы учесть быструю и простую отладку. | |
They send error messages through the modJSONError PHP class, which is an abstraction layer class that allows for easy JSON-formatted error messages to be sent back to the browser's XMLHttpRequest. | Они посылают сообщения об ошибках с помощью класса modJSONError PHP, который является классом уровеня абстракции, позволяя легко JSON-форматировать сообщения об ошибках, которые должны быть возвращены XMLHttpRequest браузера. |
