Warning: PyroCMS v2 is very old, these docs are provided free of charge, use at your own risk.
URL Helper
This helper adds functionality not available in the CodeIgniter URL Helper.
Functions
url_title($str, $separator = 'dash', $lowercase = false)
**Overrides default CodeIgniter function.**
This behaves like the normal CodeIgniter url_title() function, except it adds Cyrillic alphabet support.
| Name | Default | Required | Description |
|---|---|---|---|
| str | Yes | The string to convert | |
| separator | dash | No | Convert bad characters to this character |
| lowercase | false | No | Return result in lowercase? |
shorten_url($url = '')
Takes a long URL and uses the TinyURL API to return a shortened version.
| Name | Default | Required | Description |
|---|---|---|---|
| url | (Current URL) | No | The long URL |
// usage
shorten_url('https://www.google.com/search?q=what+is+tinyurl');
// returns
'http://tinyurl.com/cvwr4sn'
