Architecture and files
Де що лежить в OpenCart і як запит проходить від index.php до відповіді.
Start here
-
1
OpenCart 3.0 and 4.x File Structure: A Developer's Directory Map
Where controllers, models, templates, language files, extensions and storage live in OpenCart 3.0 and 4.x. We also break down how a route maps to a file path.
-
2
OpenCart framework.php: request flow from index.php to controller
We break down how a request in OpenCart 3.0 and 4.x passes through index.php, startup.php and framework.php, where services are created and how the controller is chosen.
All articles in this section
OpenCart 3.0 and 4.x File Structure: A Developer's Directory Map
Where controllers, models, templates, language files, extensions and storage live in OpenCart 3.0 and 4.x. We also break down how a route maps to a file path.
OpenCart framework.php: request flow from index.php to controller
We break down how a request in OpenCart 3.0 and 4.x passes through index.php, startup.php and framework.php, where services are created and how the controller is chosen.
config.php in OpenCart: file configs, system/config and database settings
Three levels of configuration in OpenCart 3.0 and 4.x: config.php, system/config and the setting table. Where each lives, the order in which it loads, and where to correctly change a parameter.
OpenCart Registry: How Objects Reach the Controller
How the OpenCart 3.0 and 4.x registry works: where $this->db, $this->config and models come from in a controller, how to add your own object, and which pitfalls to avoid.
OpenCart Loader: how load->controller, model, view and language work
We break down the Loader class in OpenCart 3.0 and 4.x: how models are loaded through the proxy, nested controllers, Twig templates and language files, and where events fire in this chain.
Ask the community: OpenCart developers answer on the forum.