You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Read the Symfony documentation on [Controllers](https://symfony.com/doc/4.4/controller.html) and [Routing](https://symfony.com/doc/4.4/routing.html).
8
+
Read the Symfony documentation on [Controllers](https://symfony.com/doc/6.4/controller.html) and [Routing](https://symfony.com/doc/6.4/routing.html).
9
9
{{% /notice %}}
10
10
11
-
Controllers are located in `src/PrestaShopBundle/Controller/Admin` folder. They are organized in sub-folders following the Back Office menu. For instance, the [TaxController](https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/PrestaShopBundle/Controller/Admin/Improve/International/TaxController.php) is located in `src/PrestaShop/Controller/Admin/Improve/International`.
11
+
Controllers are located in `src/PrestaShopBundle/Controller/Admin` folder. They are organized in sub-folders following the Back Office menu. For instance, the [TaxController](https://github.com/PrestaShop/PrestaShop/blob/9.0.x/src/PrestaShopBundle/Controller/Admin/Improve/International/TaxController.php) is located in `src/PrestaShop/Controller/Admin/Improve/International`.
12
12
Same applies to **Improve**, **Sell** sections etc.
13
13
14
14
This is how the directory tree of controllers should look like:
@@ -40,7 +40,7 @@ Symfony Controllers should be thin by default and have only one responsibility:
40
40
* Validation
41
41
* etc...
42
42
43
-
You can take a look at [PerformanceController](https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/PerformanceController.php) for an example of good implementation, and [ProductController](https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/PrestaShopBundle/Controller/Admin/ProductController.php) for something you should avoid at all costs.
43
+
You can take a look at [PerformanceController](https://github.com/PrestaShop/PrestaShop/blob/9.0.x/src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/PerformanceController.php) for an example of good implementation, and [ProductController](https://github.com/PrestaShop/PrestaShop/blob/9.0.x/src/PrestaShopBundle/Controller/Admin/ProductController.php) for something you should avoid at all costs.
44
44
45
45
{{% notice warning %}}
46
46
**Never, ever call the legacy controller inside the new controller**. It's a no go, no matter the reason!
@@ -185,7 +185,7 @@ In this case, you can use the [Controllers helper functions](#controller-helpers
185
185
186
186
## Routing in PrestaShop
187
187
188
-
Routes are responsible for mapping a controller action to an url, you can read more about routing in [symfony docs](https://symfony.com/doc/4.4/routing.html).
188
+
Routes are responsible for mapping a controller action to an url, you can read more about routing in [symfony docs](https://symfony.com/doc/6.4/routing.html).
189
189
190
190
{{% notice info %}}
191
191
PrestaShop uses YAML files for service declaration and routing (NOT ANNOTATIONS).
@@ -308,4 +308,4 @@ redirected to the new migrated url.
308
308
309
309
### Javascript generation
310
310
311
-
In order to avoid hardcoded links in JavaScript, Prestashop uses the [`Router` component](https://github.com/PrestaShop/PrestaShop/blob/8.0.x/admin-dev/themes/new-theme/js/components/router.ts).
311
+
In order to avoid hardcoded links in JavaScript, Prestashop uses the [`Router` component](https://github.com/PrestaShop/PrestaShop/blob/9.0.x/admin-dev/themes/new-theme/js/components/router.ts).
0 commit comments