About page,block,widget

By ukmodak | March 31st 2024 10:37:45 AM | viewed 561 times

Page:

A page object is a class that serves to interact with the Magento page. A page serves as container for blocks.

Block:

Block as a class represents a set of methods to manipulate with Magento UI blocks. It contains all logic you want to apply to the Magento block under page.

A block can have the following features:

  • A block can contain other blocks.
  • A block can be used in several pages and widgets.

Widget:

Widget is a manageable component of Magento 2, which allows users to display data on frontend.Widget also contain block

bONEandALL
Visitor

Total : 20426

Today :12

Today Visit Country :

  • United States
  • Czechia
  • Singapore
  • Belgium
  • China
  • Italy