Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Display the value of variables

Started by Muut Archive 10 years ago · 1 replies · 295 views
10 years ago

How can I see the value of the variables for a particular item? I know that some time ago when I was developing my home page modules, I was able to see the value of each variable, because I used that to set up some controls using if statements.

Now I want to make some modifications and I cannot for the life of me remember how I did it. I'm sure there was some kind of "switch" but cannot recall the details.

Can anyone help? Thanks.

10 years ago

Got it, thanks to @flaviocopes answering someone else in chat. It's dump () and the debug bar.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1366 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1125 9 years ago