Jump to:

23490 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Debug SilverStripe Variables

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 3200 Views
  • BigChris
    Avatar
    Community Member
    63 Posts

    Debug SilverStripe Variables Link to this post

    Hello,

    How do you output a list of available SilverStripe variables?

    In php if stuck I would use phpinfo(); to list all variables on a page and if they populated.

    Can something similar be done with SilverStripe?

    Not sure if this is an URL Variable Tools, if so what would I use?

    Regards
    Chris

  • zenmonkey
    Avatar
    Community Member
    528 Posts

    Re: Debug SilverStripe Variables Link to this post

    I take it you're looking for all the functions available on a certain controller

    Adding ? debugmethods=1 to the end of your URL may give you some of the Information you're looking for.

  • BigChris
    Avatar
    Community Member
    63 Posts

    Re: Debug SilverStripe Variables Link to this post

    Hi Zenmonkey,

    Thanks for the tip. Its a good help, but I think its the passed in SilverStripe parameters and if they are populated which is what I am after.

    Cheers
    Chris

  • carlos
    Avatar
    Community Member
    41 Posts

    Re: Debug SilverStripe Variables Link to this post

    try

    var_dump($foo);

    Debug::show($foo);

    Debug::dump($foo);

    hope that's what you after.

  • Mo
    Avatar
    Community Member
    508 Posts
    3200 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.