Skip to content
This repository was archived by the owner on Dec 5, 2018. It is now read-only.

Http:Url

gehrc edited this page Nov 7, 2014 · 1 revision

###Description

Contains functions for creating URLs.


####create() Creates a URL from the given parameters

Params

  • string $section Section Name
  • string $subsection Subsection Name
  • string[] $params Additional URL Parameters in an Associative Array (default: empty array)

Return

string Complete URL

Example

Create a URL to the 'Welcome/info' page with a 'success' phase

Url::create('Welcome', 'info', array('phase' => 'success');

Notes

This relies on the BASE_URL global, which is set in app/config/system.ini and set in bootstrap/bootstrap.php. It will include the proper HTTP/S setting for the site.


Clone this wiki locally