mirasvit / module-profiler

Magento 2 Profiler
https://mirasvit.com/
Open Software License 3.0
133 stars 36 forks source link

Change root.phtml view to use Magento getViewFileUrl #38

Closed zack6849 closed 1 year ago

zack6849 commented 6 years ago

Swap to use getViewFileUrl

Using magento 2.1.10 with composer your module failed to load for me, complaning it couldn't find files because in production mode your profiler isn't expecting the DIR for root.phtml to be in /var/view_processed.

Switching to this method should ensure that your module won't fail on production mode, at least not for the above reason.