Jump to content

Recommended Posts

Posted

Is there a way to do a var_dump() in PW without getting a massive incomprehensible array returned? The amount of data that's inside the object is so extensive that it often crashes the browser.

Is there a wrapper function that's just for debugging?

Posted

Well, I have something as simple as a list of US states and their children (which are Schools). The US states just have a title, as do the Schools.

I have looped through all the states and split them into two arrays for display purposes. All I want to do is var_dump the array that contains the objects, but PW spits out an insane 20 page novel about the contents of the states and their children. 

Posted

So, when I try:

$state_set = $pages->find('template=state');

echo $state_set->getArray();

I get Array(); as the output. If I try:

var_dump($state_set->getArray());

I get Proust.

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
×
×
  • Create New...