21294 Posts in 5734 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 2250 Views |
-
Debug SilverStripe Variables

27 February 2010 at 2:07am Last edited: 27 February 2010 2:18am
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 -
Re: Debug SilverStripe Variables

27 February 2010 at 10:03am
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.
-
Re: Debug SilverStripe Variables

2 March 2010 at 5:01am
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 -
Re: Debug SilverStripe Variables

2 March 2010 at 1:37pm
try
var_dump($foo);
Debug::show($foo);
Debug::dump($foo);
hope that's what you after.
-
Re: Debug SilverStripe Variables

3 March 2010 at 5:49am
Also, have you looked here? http://doc.silverstripe.org/doku.php?id=urlvariabletools
Mo
| 2250 Views | ||
|
Page:
1
|
Go to Top |




