PHP Classes

File: readme.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Gregory  >  Smart URI  >  readme.txt  >  Download  
File: readme.txt
Role: Documentation
Content type: text/plain
Description: micro howto
Class: Smart URI
Wrap all site requests around a single PHP script
Author: By
Last change: *
Date: 10 years ago
Size: 1,207 bytes


Class file image Download
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:



$site = array(
	"#"	=> "index",
		    ~~~~~  --> Wrapper name 
		    	       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.