System:Template:createFormAction

From Aspen Documentation

Creates a url that is properly encoded for a form action attribute. It automatically detects the id from the url.

Since 1.0

Contents

Arguments

string createFormAction ([string $method = false])

method
The class method ("page") to generate a link to. If left false, it will generate a link to the current method.

Returns

Returns an absolute url as a string.

Notes

  • This function will not be available for external resources. Only applications running within the framework may utilize it.

Examples

Generate a form action to the current page:

$this->createFormAction();