View Single Post
  #4  
Old 12-15-2015, 05:33 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Easiest way to add a CSS class based on page data

Quote:
... creating a new class that decorates the \XLite\View\AView class ...

I think there is a class that is more specific for the menu than AView. By decorating AView class you add the method to every widget on the page.

Will it work if you add the method to TopMenuFromId class?
If not, what is the full "method not found" error backtrace from the log file?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote