SmartURI v0.9.1
(c) Gregory A. Rozanoff, 2004, 2005
================================================================
"#" - INDEX (root) element.
Defines URI like /
"*" - INNER element/
Defines all inner pages except INDEX (ex. /inner/instance)
"name" - SUB-INDEX element/
Defines all pages like /name/instance
The following example describes URIs:
http://myhost/
http://myhost/test/
http://myhost/test/any/other/page
----------------------------------------------------------------
$site = array(
"#" => "index",
~~~~~ --> Wrapper name
/path/to/actions/index.php
will be called as a wrapper
for http://myhost/ page.
"test" => array (
"#" => "index_test",
"*" => "index_test",
),
);
----------------------------------------------------------------
URIs like http://myhost/any/page will produce 404 error :)
If wrapper not found it poduce a 403 "forbidden" error;
URI structure array accessable from wrapper via $_URI variable;
If wrapper sets the $_ERROR vatiable into TRUE, it will
produce a 403 "Forbidden" error.
================================================================ |