Adam 2009-02-09
Documentation » Getg_path
Gets current node path (URL) including action
string g_path( [bool|string $action = true, array $components = false, bool $full = false, bool $add_slash = false] )
Parameters
- bool|string $action Put the specified action into the URL, TRUE to include current action, FALSE for no action (view)
- array $components Custom path components (FALSE for current path as it is)
- bool $full Generate full URL including hostname, protocol and port (if necessary)
- bool $add_slash Add slash at the end of the path (URL)
Returns
- string Path (URL) for current node's action (or other as specified)
Last edited 2009-02-24 16:40:27
