Jump to content

Is $options a reserved variable?


Jonathan Lahijani
 Share

Recommended Posts

No, you don't have to avoid using a variable called $options, because it $options is only used in a local scope, in this example it's used in the local scope of the method "renderPage()". It's not a global ProcessWire API variable like $page, $pages or $config, for example - you should avoid redeclaring these. Read more about these API variables here.

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...