Skip to content

Instantly share code, notes, and snippets.

@ryun
Created November 24, 2012 07:10
Show Gist options
  • Save ryun/4138744 to your computer and use it in GitHub Desktop.
Save ryun/4138744 to your computer and use it in GitHub Desktop.
Global helper plugin tag
{{ pyroforms:get id="1" display="custom" }}
<h3>{{ form_name }}</h3>
{{ if global:is_get }}
<p>{{ form_info }}</p>
{{ endif }}
{{ header }}
<fieldset>
<legend>User:</legend>
{{ form_fields:name }}
</fieldset>
{{ form_fields:save }}
{{ footer }}
{{ form_tracking }}
{{ /pyroforms:get }}
function is_get()
{
$method = strtolower($_SERVER['REQUEST_METHOD']);
return $method === 'get';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment