Controllers in Magento 2, like on other PHP MVC frameworks, are important part of MVC flow. In Magento 2 controllers have only one method (execute) that will be called by front controller. It functionality is that received request, process and render page. In Magento 2 Controller has one or more files in Controller folder of module, it includes actions of…
Month: April 2021
How to Create Controller in Magento 2?
Controllers in Magento 2, like on other PHP MVC frameworks, are important part of MVC flow. In Magento 2 controllers have only one method (execute) that will be called by front controller. It functionality is that received request, process and render page. In Magento 2 Controller has one or more files in Controller folder of module, it includes actions of…
How to Print Log in Magento 2?
Logs in Magento 2 consist the system information for the future analysis. To enable the debug mode go to Stores -> Configuration -> Advanced -> Developer -> Debug -> Set ‘Yes’ to Log to file. Also make sure Magento store is in developer mode. If Magento store is in Production Mode then need run the below command. php bin/magento config:set…
How to setup Cron Jobs Via SSH In Magento 2?
Magento cron job is an important component for correct performance. Magento uses cron jobs for numerous features to schedule activities. It is widely used for running actions that are performed on schedule, such as indexing and caching, sitemap generation, currency rate updates, and many more as well. Why need Cron Job for Magento 2 ? Cron job use following activities.…
How to remove unnecessary customer account links in Magento 2?
Magento by default displays a huge list of customer account links on the customer account page. Sometimes we need to customize this default links inclusion as not all links are needed. There are some sort of requirements to remove some links which are unnecessary for the customers. Often it’s needed to remove a couple of links, for example, My Product…