Php webtags: Difference between revisions

529 bytes added ,  20:06, 20 April 2020
m
Line 312: Line 312:
==Debugging==
==Debugging==


If you wish to view all the values contained within the '''cumulswebtags.php''' file, append the parameter <tt>?source=view</tt> to the end of the URL.
If you wish to view all the values contained within a template file , some files (e.g. the brandon script) let you do this by appending the querystring <tt>?source=view</tt> to the end of the URL. Other templates expect you to add the querystring <code>?parse=source</code> and still others use <tt>?view=source</tt>. There may even be other variants. I tried hard to get standardisation see [https://cumulus.hosiene.co.uk/viewtopic.php?f=14&t=16425 Source Listing suggestion] in the forum, but I know of at least five other variants, source is abbreviated to 'sce' or 'src', and as well as parse, people use 'download'.


Example
Example
  www.myweathersite.com/cumuluswebtags.php?source=view
  www.myweathersite.com/cumuluswebtags.php?source=view


This will display the source code of the file, listing all the variable names and the values Cumulus has assigned to the webtags during it's processing cycle.
This will display the source code of the file, listing all the variable names and the values Cumulus has assigned to the web tags during it's processing cycle. It won't show you the original template with web tags in it.


[[Category:WebTools]]
[[Category:WebTools]]
5,838

edits