Magento Expert Forum - Improve your Magento experience

Results 1 to 2 of 2

How To Use Class in Root Script in Magento 2

  1. #1
    Junior Member
    Join Date
    Aug 2022
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How To Use Class in Root Script in Magento 2

    Root scripts in Magento 2 animate the most common way of recovering the information like getting the server time and store time.
    Name:  How-To-Use-Class-in-Root-Script-in-Magento-2-Social-Share.png
Views: 502
Size:  23.8 KB
    Making a root script in Magento 2 assists the designer with saving time. In any case, a root script has an issue as well. In root scripts, we can't exploit IDE auto-culmination which supports the efficiency of the designers.

    By utilizing the use class in root script in Magento 2, the IDE begins supporting the auto-finish office. Consequently, it's a superior decision for designers.

    For more info: https://meetanshi.com/blog/use-class...ipt-magento-2/

    View more threads in the same category:


  2. #2
    Junior Member
    Join Date
    Sep 2018
    Location
    Oman, Muscat
    Posts
    2,084
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    To involve code in outside record/script in Magento 2, the point covers a model which will involve the current in the Magento 2 root organizer.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •