2 users online. Create an account or sign in to join them.Users

Search

Hi.

I’m quite new to Symphony and was just working out how to debug a posted form, my solution was to add ?debug to the form action which appeared to do what I wanted (i.e. display the debugger after the form had been posted and fully processed by all filters).

Is this the suggested way to debug a posted form or are there better solutions?

Cheers

Toby

There is an option in the configuration file (/manifest/config.php) that let’s you append the events results to your HTML source code:

###### PUBLIC ######
'public' => array(
    'display_event_xml_in_source' => 'yes',
),
########

But won’t that hide that the XML in the source? :-)

You can also use

<xsl:comment>
    <xsl:copy-of select="data/events" />
</xsl:comment>

somewhere in your master.xsl. It will show all event XML all the time. Just remember to disable it when you go production.

Argh… Of course - has been a long day :)

The display_event_xml_in_source is what I always use — it’s such a good idea!

great, that’s what I was looking for, thanks for that.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details