Jump to content
Smirftsch

WireFileTools $files->find usage

Recommended Posts

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.

 

Share this post


Link to post
Share on other sites

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()

  • Like 3

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...