Jump to content

Featured Replies

Posted

Does anyone know an easy way to inspect instance of an IPS class (vars/methods etc)? Basically I want to be able to print_r/var_dump/get_object_vars($classInstance) in the cloud hosted env.

Example I am creating an "Add to calendar" button on event pages that will allow users to add events to their personal calendars (google, apple, outlook, etc...). This requires that I dynamically add event data. Up until now I have been looking at templates and trying to find the corresponding elements that render a given piece of data - e.g. $event->content(). There has to be a better way that is less of a stab into the dark... anyone have any thoughts!? 

 

 

 

You might be interested in this:

 

22 minutes ago, Paul E. said:

You might be interested in this:

He would be if it was available to install. Also if he wasn't on Cloud, where you can't turn on In_dev. And also because of the last paragraph of the description of the app.

  • Author

Yeah it looks like this has been causing more issues that it has been solving in CIC. I appreciate you pointing it out though @Paul E.

@Nathan Explosion any other thoughts?

Oh I'm sorry, I had no idea you were on CIC.jurassic park mind blown GIF by Spotify

  • Author
Just now, Paul E. said:

Oh I'm sorry, I had no idea you were on CIC.jurassic park mind blown GIF by Spotify

Oh no problem. Thanks again!

It's going to be trickier on cloud where you can't access the files, but one thing you can do in templates is

{{var_dump( $event );exit;}}

If you use double curly brackets like above, the code is executed as PHP (there's some special shortcuts for if/foreach statements but otherwise it basically means "execute as PHP"). By editing templates and adding things like the above you should be able to print out vars in most situations.

Recently Browsing 0

  • No registered users viewing this page.