We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    You’re too quick for me, Jason! I was just beginning to work that out!
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 32319
      • 129 Posts
      Ok, so is there a place where I can find the object variables that are in the $modx object?

      My whole point in trying to output the $modx object was to see what I have access to.

      I have looked through the docs and have not found a listing. Did I miss something?
        "Regret for the things we did can be tempered by time; it is regret for the things we did not do that is inconsolable."
        -- Sydney Harris
        • 27376
        • 576 Posts
        My apologies for adding that line of code to the wiki. I ran the code as a module with no problems because modules have full control of all processing...

        I’ve changed the code to [tt]die()[/tt] so that script execution will stop and print the [tt]$modx[/tt] object. For details and warnings, read Opengeek’s post above.

        Remember that the line of code written on the wiki is for debugging purposes, it should NOT be used on a live server because the [tt]$modx[/tt] object contains the [tt]dbapi[/tt] object which stores your database username, password and address.