Jump to content

3 options of accessing API variables from wired class


Recommended Posts

I guess this question has been already addressed in some thread(s), but I fail to find complete answer, so posting it here.

I know 3 options of accessing API variables from Wire-derived class (see below).

Can someone give an in-depth/developer level answer on their relative performance difference and possible limitations (cases when one of these versions might not work as expected - may be PW3 multi-instance related or may be some hook-related issues, etc). 

1. $this->pages
2. $this->wire('pages')
3. wire(pages)


Link to comment
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...