Smirftsch Posted January 13, 2021 Share Posted January 13, 2021 I want to use the WireFileTools $files->find function, but no matter what I try I only get a server error (either error 500 or "Call to a member function find() on null"). If my understanding of the docs is right, I only need to call it with $files->find($somepath); - but is there some include, some init or something else needed? Obviously I am missing something, maybe someone can enlighten me. Link to comment Share on other sites More sharing options...
adrian Posted January 13, 2021 Share Posted January 13, 2021 I expect you are trying to use $files inside a function or there is some other reason for it to be out of scope. Try: wire('files')->find() 3 Link to comment Share on other sites More sharing options...
Smirftsch Posted January 13, 2021 Author Share Posted January 13, 2021 That was it, thanks a lot ! ? 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now