PHP Classes

File: readme.txt

Recommend this page to a friend!
  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: 19 years ago
Size: 1,207 bytes
 

Contents

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: 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. ================================================================