PHP 7 brings a new rather handy feature null coalescing operator. This new feature is similar to the ternary operator that we were using in older versions of PHP (PHP 5 & greater)
Every model class inherits from Magento\Framework\Model\AbstractModel class, which further extends from \Magento\Framework\DataObject. DataObject class allows us to use some important functions like setData() and getData()
In this post we are going to discuss how we can use the layout files and template files, what is the role of blocks in template rendering system.
Today I am going to discuss how to create a controller in Magento 2
I would like to explain the Scalar type declaration feature, I hope this will help you to improve your knowledge and help you somehow in the future.