Log1x / navi

A developer-friendly alternative to the WordPress NavWalker.
https://github.com/Log1x/navi
MIT License
311 stars 29 forks source link

Class Navi not found #81

Closed Coders91 closed 3 months ago

Coders91 commented 3 months ago

When pushing changes to my dev server I get the fatal error 'Class Navi not found', when using: @php($menu = Navi::build($name)) it works on my local just fine. I double checked composer but versions are the same, files also all seem to be there. Any ideas?

Log1x commented 3 months ago

Perhaps try running wp acorn optimize:clear on the dev server? The ability to use Navi like that in a view without specifying a namespace comes from loading the Facade, so it's possible there's a cache in place that doesn't have it.

Coders91 commented 3 months ago

Thanks again Brandon, will keep this command in mind