MarcC Posted April 9, 2012 Share Posted April 9, 2012 I just received this in an email from a developer I'm working with: Quote ...in my code, after including/bootstrapping as per his site, I can use (for example) wire('pages') but not $wire->pages. The docs say I should be able to use either way, but for me $wire is NULL. Any idea what might be going wrong? Thanks. Link to comment Share on other sites More sharing options...
Soma Posted April 9, 2012 Share Posted April 9, 2012 It works (always) for me. Maybe some other things included that is disturbing? Link to comment Share on other sites More sharing options...
ryan Posted April 9, 2012 Share Posted April 9, 2012 I don't think there's any way for us to tell why $wire isn't working without seeing the code context where it's not working. I have a feeling he's trying to use $wire from within a function or class, and it's out of scope. But I would suggest using the wire() function either way, as that's going to be more portable in most use cases. 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