{"id":4557,"date":"2013-04-22T18:28:23","date_gmt":"2013-04-22T15:28:23","guid":{"rendered":"http:\/\/blog.belvg.com\/?p=4557"},"modified":"2025-06-30T22:12:45","modified_gmt":"2025-06-30T20:12:45","slug":"general-page-structure-in-prestashop","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/general-page-structure-in-prestashop.html","title":{"rendered":"General Page Structure In Prestashop"},"content":{"rendered":"\n<p><strong>Page Initialization<\/strong><\/p>\n<p style=\"text-align: left;\">Page is generated by the controller inherited either from Fr&#1086;ntC&#1086;ntr&#1086;ller or M&#1086;duleFr&#1086;ntC&#1086;ntr&#1086;ller (for module controllers). An entry point may be either the index.php file, located in the Prestashop root folder, or a file of the same name as the controller, for example: cart.php, product.php. But this second way of the controller initialization is considered as obsolete and will be removed in version 1.6:<!--more--><\/p>\n<p style=\"text-align: left;\">cart.php (the old style, not recommended to use):<\/p>\n<pre class=\"lang:php decode:true\">require(dirname(__FILE__).'\/config\/config.inc.php');\r\nTools::displayFileAsDeprecated();\r\nTools::redirect('index.php?controller=cart'.($_REQUEST ? '&amp;'.http_build_query($_REQUEST, '', '&amp;') : ''), __PS_BASE_URI__, null, 'HTTP\/1.1 301 Moved Permanently');<\/pre>\n<p>Dispatcher which is initialized in index.php (v. 1.5):<\/p>\n<pre class=\"lang:php decode:true\">require(dirname(__FILE__).'\/config\/config.inc.php');\r\nDispatcher::getInstance()-&gt;dispatch();<\/pre>\n<p>The Dispatch method of the Dispatcher class is searching for the required controller using the request parameters and then creates its object and calls the abstract method Run of the required controller, which performs the whole logic of the controller:<\/p>\n<pre class=\"lang:php decode:true\">\/\/ Instantiate controller\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\/\/ Loading controller\r\n\t\t\t$controller = Controller::getController($controller_class);\r\n\r\n\t\t\t\/\/ Execute hook dispatcher\r\n\t\t\tif (isset($params_hook_action_dispatcher))\r\n\t\t\t\tHook::exec('actionDispatcher', $params_hook_action_dispatcher);\r\n\r\n\t\t\t\/\/ Running controller\r\n\t\t\t$controller-&gt;run();\r\n\t\t}\r\n\t\tcatch (PrestaShopException $e)\r\n\t\t{\r\n\t\t\t$e-&gt;displayMessage();\r\n\t\t}<\/pre>\n<p>Anyway, when describing the page initialization process it is essential to mention such an important file as config\/config.inc.php. It corrects global PHP variables by modifying the server information and execution environment, as well as connects the necessary files for the proper functioning of the entire system.<\/p>\n<ul>\n<li>defines.inc.php &ndash; defines constants<\/li>\n<li>settings.inc.php &ndash; contains the information about the database and about the version, the installation date and the keys to generate passwords<\/li>\n<li>autoload.php\n<ul>\n<li>alias.php &ndash; specifies aliases for certain functions of the Tools class and contains the function pSQL which is used to sanitize data which will be injected into SQL query<\/li>\n<li>&#1089;lasses\/Autoload.php &ndash; this class mainly implements the function that automatically loads the requested controller (for more details refer to the chapter Autoload)<\/li>\n<\/ul>\n<\/li>\n<li>defines_uri.inc.php &ndash; defines the constants that are used to obtain Urls of various folders (for example folders with js, css, mudules, etc.)<\/li>\n<li>smarty.config.inc.php &ndash; sets up variables to work with the Smarty template engine\n<ul>\n<li>Smarty.class.php<\/li>\n<li>smartyadmin.config.inc.php<\/li>\n<li>smartyfront.config.inc.php<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>The singleton object $context occupies a special place. It is used almost in all classes and controllers and contains important information on the current user status. As a rule, it contains the information about:<\/p>\n<ul>\n<li>user&rsquo;s shopping cart (object of the class Cart),<\/li>\n<li>object of the class Customer,<\/li>\n<li>object of the class Cookie,<\/li>\n<li>object of the class Link,<\/li>\n<li>object of the class Country,<\/li>\n<li>object of the class Employee,<\/li>\n<li>object of the class Controller,<\/li>\n<li>object of the class Language,<\/li>\n<li>object of the class Currency,<\/li>\n<li>object of the class AdminTab,<\/li>\n<li>object of the class Shop,<\/li>\n<li>object of the class Smarty,<\/li>\n<li>mobile_detect &ndash; contains data about the user&rsquo;s mobile device.<\/li>\n<\/ul>\n<p style=\"text-align: center;\"><strong>Autoload<\/strong><\/p>\n<p style=\"text-align: left;\">The contents of the file &#1072;ut&#1086;l&#1086;&#1072;d.php:<\/p>\n<pre class=\"lang:php decode:true\">\/\/ Include some alias functions\r\nrequire_once(dirname(__FILE__).'\/alias.php');\r\nrequire_once(dirname(__FILE__).'\/..\/classes\/Autoload.php');\r\nspl_autoload_register(array(Autoload::getInstance(), 'load'));<\/pre>\n<p>Classes are loaded into the directory as follows:<\/p>\n<ul>\n<li>classes\/<\/li>\n<li>override\/classes\/<\/li>\n<li>controllers\/<\/li>\n<li>override\/controllers\/<\/li>\n<\/ul>\n<p>Please note that all files from the above-mentioned folders will be loaded. To improve the performance the system creates the file cache\/&#1089;l&#1072;ss_index.php which is an associative array $key= &gt; $value, where $key &ndash; is the name of the class and $value &ndash; is the path to the file with the class. For example:<\/p>\n<pre class=\"lang:php decode:true\">&hellip;\r\n  'Db' =&gt; '',\r\n  'DbCore' =&gt; 'classes\/db\/Db.php',\r\n  'DbMySQLi' =&gt; '',\r\n  'DbMySQLiCore' =&gt; 'classes\/db\/DbMySQLi.php',\r\n&hellip;<\/pre>\n<p>To better understand the processes which take place when a class is called, please, study the class Autoload and the function Autoload: :load() in particular.<\/p>\n<p style=\"text-align: center;\"><strong>Routing<\/strong><\/p>\n<p style=\"text-align: left;\">The Dispatcher class contains the array def&#1072;ult_r&#1086;utes, which contains the standard routing rules.<\/p>\n<p style=\"text-align: left;\">For better understanding of the routing processes in Prest&#1072;sh&#1086;p, please, study the class Dispatcher.php, and the methods l&#1086;&#1072;dR&#1086;utes and &#1072;ddR&#1086;ute in particular.<\/p>\n<p style=\"text-align: left;\">In v1.5.3, added a small new feature to the URL dispatcher to further enhance URL rewriting capabilities. It is now possible to add custom URL routes for modules. Let&rsquo;s see how it works.<\/p>\n<p style=\"text-align: left;\">Here&rsquo;s an example:<br>\nLet&rsquo;s name a new Module called &ldquo;mymodule&rdquo;.<br>\n&ldquo;mymodule&rdquo; has two main functions.<\/p>\n<ul>\n<li>It will show a page list of commands for any user on your site<\/li>\n<li>You can use &ldquo;mymodule&rdquo; to see the details of an order<\/li>\n<\/ul>\n<p style=\"text-align: left;\"><em><strong>Page list of commands<\/strong><\/em><\/p>\n<ul>\n<li>Friendly URL Disabled: http:\/\/www.yourstore.com\/index.php?fc=module&amp;module=monmodule&amp;controller=orders&amp;module_action=listing<\/li>\n<li>Friendly URL Enabled: http:\/\/www.yourstore.com\/module\/monmodule\/orders?module_action=listing<\/li>\n<\/ul>\n<p style=\"text-align: left;\"><em><strong>Details of an order<\/strong><\/em><\/p>\n<ul>\n<li>Friendly URL Disabled: http:\/\/www.yourstore.com\/index.php?fc=module&amp;module=monmodule&amp;controller=orders&amp;module_action=details&amp;id_order=42<\/li>\n<li>Friendly URL Enabled: http:\/\/www.yourstore.com\/module\/monmodule\/orders?module_action=details&amp;id_order=42<\/li>\n<\/ul>\n<p>The principle of using Friendly URLs is to have nice, clean, SEO Friendly URLs that are naturally readable by search engines and customers alike. However, even with Friendly URLs turned on, sometimes the URLs can still look strange. This is clearly the case with the two examples above, even with Friendly URLs turned on.<\/p>\n<p>PrestaShop v1.5.3 comes equipped with the ability to add custom routes for a module. Using Friendly URLs, alongside with a custom route for the module we created, allows us to alter each URL to look fresh and clean. Check out the URLs now that we&rsquo;ve added a custom route.<\/p>\n<ul>\n<li><strong>Page list of commands<br>\n<\/strong>http:\/\/www.yourstore.com\/module\/mymodule\/orders\/listing<\/li>\n<li><strong>Details of an Order<br>\n<\/strong>http:\/\/www.yourstore.com\/module\/mymodule\/orders\/details\/42<\/li>\n<\/ul>\n<p>The difference is remarkable. In the above examples, you can now see how much easier the URLs are to read. This is an example of the awesome power and control you have over your URLs by using PrestaShop.<\/p>\n<p>If you have a server that can handle URL rewriting, and have Friendly URL&rsquo;s turned on, you can navigate to Preferences&gt;SEO and URL&rsquo;s&gt; Schema of URL&rsquo;s to view all the customization features you can add.<\/p>\n<p>Taken from http:\/\/www.prestashop.com\/blog\/en\/custom-url-routing-prestashop-modules\/<\/p>\n<p style=\"text-align: center;\"><strong>Page Structure<\/strong><\/p>\n<p style=\"text-align: left;\">On any page the controller calls header.tpl (red) and footer.tpl (sky blue), as well as calls different templates for the<\/p>\n<p>page body (blue and green), depending on the logic. The class Fr&#1086;ntendC&#1086;ntr&#1086;ller is responsible mostly for displaying of the front end of the website. Within it, important Smarty variables are defined and the following hooks are called: displ&#1072;yHe&#1072;der, displ&#1072;yT&#1086;p, displ&#1072;yLeftC&#1086;lumn, displ&#1072;yRightC&#1086;lumn, displ&#1072;yM&#1086;bileHe&#1072;der, displ&#1072;yF&#1086;&#1086;ter, &#1072;&#1089;ti&#1086;nFr&#1086;ntC&#1086;ntr&#1086;llerSetMedi&#1072;, Displ&#1072;yOverrideTempl&#1072;te.<\/p>\n<p style=\"text-align: left;\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-8746 size-belvg-post-content\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2013\/04\/11-850x1598.jpg\" alt=\"11 850x1598\" width=\"850\" height=\"1598\" title=\"General Page Structure In Prestashop\"><\/p>\n<p style=\"text-align: left;\">\n<\/p>\n","protected":false},"excerpt":{"rendered":"Page Initialization Page is generated by the controller inherited either from Fr&#1086;ntC&#1086;ntr&#1086;ller or M&#1086;duleFr&#1086;ntC&#1086;ntr&#1086;ller (for &#8230;","protected":false},"author":12,"featured_media":8373,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[15,300],"tags":[445],"class_list":["post-4557","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-prestashop","category-prestashop-guide","tag-prestashop","post_format-post-format-image"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"The article deals with the basic steps of page generation in Prestashop such as: page initialization, autoload, routing and page structure.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Aliaksandr Simonchik\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/general-page-structure-in-prestashop.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/general-page-structure-in-prestashop.html#article\",\"name\":\"General Page Structure In Prestashop | BelVG Blog\",\"headline\":\"General Page Structure In Prestashop\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/04\\\/presta-2.jpg\",\"width\":682,\"height\":170,\"caption\":\"General Page Structure In Prestashop\"},\"datePublished\":\"2013-04-22T18:28:23+02:00\",\"dateModified\":\"2025-06-30T22:12:45+02:00\",\"inLanguage\":\"en-US\",\"commentCount\":4,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/general-page-structure-in-prestashop.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/general-page-structure-in-prestashop.html#webpage\"},\"articleSection\":\"Prestashop, Prestashop Guide, Prestashop, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/general-page-structure-in-prestashop.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"name\":\"Prestashop\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"position\":2,\"name\":\"Prestashop\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\\\/prestashop-guide#listItem\",\"name\":\"Prestashop Guide\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\\\/prestashop-guide#listItem\",\"position\":3,\"name\":\"Prestashop Guide\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\\\/prestashop-guide\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/general-page-structure-in-prestashop.html#listItem\",\"name\":\"General Page Structure In Prestashop\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"name\":\"Prestashop\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/general-page-structure-in-prestashop.html#listItem\",\"position\":4,\"name\":\"General Page Structure In Prestashop\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\\\/prestashop-guide#listItem\",\"name\":\"Prestashop Guide\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik\",\"name\":\"Aliaksandr Simonchik\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/general-page-structure-in-prestashop.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6553917a81b1da7866b8b875368df6cbbec56413c3438694df8539de7fb092c0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Aliaksandr Simonchik\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/general-page-structure-in-prestashop.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/general-page-structure-in-prestashop.html\",\"name\":\"General Page Structure In Prestashop | BelVG Blog\",\"description\":\"The article deals with the basic steps of page generation in Prestashop such as: page initialization, autoload, routing and page structure.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/general-page-structure-in-prestashop.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/04\\\/presta-2.jpg\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/general-page-structure-in-prestashop.html\\\/#mainImage\",\"width\":682,\"height\":170,\"caption\":\"General Page Structure In Prestashop\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/general-page-structure-in-prestashop.html#mainImage\"},\"datePublished\":\"2013-04-22T18:28:23+02:00\",\"dateModified\":\"2025-06-30T22:12:45+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"General Page Structure In Prestashop | BelVG Blog","description":"The article deals with the basic steps of page generation in Prestashop such as: page initialization, autoload, routing and page structure.","canonical_url":"https:\/\/belvg.com\/blog\/general-page-structure-in-prestashop.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/general-page-structure-in-prestashop.html#article","name":"General Page Structure In Prestashop | BelVG Blog","headline":"General Page Structure In Prestashop","author":{"@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2013\/04\/presta-2.jpg","width":682,"height":170,"caption":"General Page Structure In Prestashop"},"datePublished":"2013-04-22T18:28:23+02:00","dateModified":"2025-06-30T22:12:45+02:00","inLanguage":"en-US","commentCount":4,"mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/general-page-structure-in-prestashop.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/general-page-structure-in-prestashop.html#webpage"},"articleSection":"Prestashop, Prestashop Guide, Prestashop, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/general-page-structure-in-prestashop.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/belvg.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","name":"Prestashop"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","position":2,"name":"Prestashop","item":"https:\/\/belvg.com\/blog\/category\/prestashop","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide#listItem","name":"Prestashop Guide"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide#listItem","position":3,"name":"Prestashop Guide","item":"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/general-page-structure-in-prestashop.html#listItem","name":"General Page Structure In Prestashop"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","name":"Prestashop"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/general-page-structure-in-prestashop.html#listItem","position":4,"name":"General Page Structure In Prestashop","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide#listItem","name":"Prestashop Guide"}}]},{"@type":"Organization","@id":"https:\/\/belvg.com\/blog\/#organization","name":"BelVG Blog","description":"Magento and Prestashop articles","url":"https:\/\/belvg.com\/blog\/"},{"@type":"Person","@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author","url":"https:\/\/belvg.com\/blog\/author\/alex-simonchik","name":"Aliaksandr Simonchik","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/general-page-structure-in-prestashop.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/6553917a81b1da7866b8b875368df6cbbec56413c3438694df8539de7fb092c0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Aliaksandr Simonchik"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/general-page-structure-in-prestashop.html#webpage","url":"https:\/\/belvg.com\/blog\/general-page-structure-in-prestashop.html","name":"General Page Structure In Prestashop | BelVG Blog","description":"The article deals with the basic steps of page generation in Prestashop such as: page initialization, autoload, routing and page structure.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/general-page-structure-in-prestashop.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2013\/04\/presta-2.jpg","@id":"https:\/\/belvg.com\/blog\/general-page-structure-in-prestashop.html\/#mainImage","width":682,"height":170,"caption":"General Page Structure In Prestashop"},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/general-page-structure-in-prestashop.html#mainImage"},"datePublished":"2013-04-22T18:28:23+02:00","dateModified":"2025-06-30T22:12:45+02:00"},{"@type":"WebSite","@id":"https:\/\/belvg.com\/blog\/#website","url":"https:\/\/belvg.com\/blog\/","name":"BelVG Blog","description":"Magento and Prestashop articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"4557","title":"General Page Structure In Prestashop  | #site_title","description":"The article deals with the basic steps of page generation in Prestashop such as: page initialization, autoload, routing and page structure.","keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-03 18:38:13","updated":"2026-11-03 18:38:13"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/prestashop\" title=\"Prestashop\">Prestashop<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide\" title=\"Prestashop Guide\">Prestashop Guide<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tGeneral Page Structure In Prestashop\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"Prestashop","link":"https:\/\/belvg.com\/blog\/category\/prestashop"},{"label":"Prestashop Guide","link":"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide"},{"label":"General Page Structure In Prestashop","link":"https:\/\/belvg.com\/blog\/general-page-structure-in-prestashop.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/4557","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=4557"}],"version-history":[{"count":9,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/4557\/revisions"}],"predecessor-version":[{"id":29663,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/4557\/revisions\/29663"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/8373"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=4557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=4557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=4557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}