Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

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

print_r($Image); not working...

Go to End

2 Posts   995 Views


Community Member, 11 Posts

2 September 2013 at 6:10pm

I'm trying to print all properties to a model with <? print_r($Image); ?> but get an "Parse error: syntax error, unexpected" error message. Why? The object works but I'm looking for a list of properties to this object.


Community Member, 187 Posts

2 September 2013 at 8:36pm

Are you including the '<?' ? If you're putting that in the middle of your class, that's why. The PHP opening tags are already at the start of the file, you don't need to add them again. You shouldn't use the closing tags either. Just use: