$input


Properties and Methods

$input->urlSegment($n)

Introduced in Version 2.0

Description

Retrieve the $n'th URL segment (integer).
urlSegment(1) = /page/aaa/
urlSegment(2) = /page/aaa/bbb/
urlSegment(3) = /page/aaa/bbb/ccc/
...
The maximum segments allowed can be adjusted in your sites config.php.

Alternative syntax:
$input->urlSegment1
$input->urlSegment2
$input->urlSegment3
...

Post Comment