ฉันต้องการตรวจสอบหน้าปัจจุบันคือหน้าแรกหน้าหมวดหมู่หน้าผลิตภัณฑ์ & หน้า cms ใน magento 2
คุณต้องการตรวจสอบสิ่งนี้ในบริบทใด ควบคุม? บล็อก?
—
Marius
Magento 1 เวอร์ชั่นที่เราใช้ function Mage :: getBlockSingleton ('page / html_header') -> getIsHomePage (); ฉันต้องการแสดงข้อมูลหน้าเหมือนหน้าแรก, หน้าหมวดหมู่, หน้าผลิตภัณฑ์ & หน้า cms ฯลฯ
—
MagikVishal
ฉันรู้ว่า แต่เพื่อตอบคำถามนี้ฉันต้องการทราบว่าคุณต้องการใช้ใน magento2 ที่ไหน ไม่มีคลาส mage ระดับโลกใน m2
—
Marius