Switch routing from using PATH_INFO, to use REQUEST_URI

This commit is contained in:
Timothy Warren 2012-05-01 09:29:45 -04:00
parent ea7486b4ab
commit 4be2e0ee57
51 changed files with 119 additions and 83 deletions

View File

@ -5,7 +5,7 @@ miniMVC is a minimalistic Modular MVC framework, with built-in minifier, and pur
### Requirements
* PHP 5.4+
* PDO extensions for databases you wish to use
* Webserver that correctly handles PATH_INFO, such as:
* Webserver that correctly handles REQUEST_URI, such as:
* Apache
* IIS
* Lighttpd

19
app/errors/error_404.php Normal file
View File

@ -0,0 +1,19 @@
<!DOCTYPE HTML>
<html>
<head>
<title>404 Not Found</title>
<style type="text/css">
div{position:relative; margin:0.5em auto; padding:0.5em; width:95%; border:1px solid #924949; background: #f3e6e6;}
</style>
</head>
<body>
<div class="message error">
<?php if(isset($title)) : ?>
<h1><?= $title ?></h1>
<?php endif ?>
<?= $message; ?>
</div>
</body>
</html>

View File

@ -1,7 +1,7 @@
<!DOCTYPE HTML>
<html>
<head>
<title>Error</title>
<title>404 Not Found</title>
<style type="text/css">
div{position:relative; margin:0.5em auto; padding:0.5em; width:95%; border:1px solid #924949; background: #f3e6e6;}
</style>

View File

@ -1520,7 +1520,7 @@ for complex select queries</h2>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -663,7 +663,7 @@ the connection/database</h2>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -152,7 +152,7 @@ and organizes database connections</p></p>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -269,7 +269,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -209,7 +209,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -813,7 +813,7 @@ the last query executed</h2>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -504,7 +504,7 @@ the query</h2>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -297,7 +297,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -212,7 +212,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -434,7 +434,7 @@ dynamic methods</h2>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -763,7 +763,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:07-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -728,7 +728,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -640,7 +640,7 @@ Used for outputing HTML</h2>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:07-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -972,7 +972,7 @@ supports</p></p>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -849,7 +849,7 @@ the connection/database</h2>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -281,7 +281,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -208,7 +208,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -851,7 +851,7 @@ the connection/database</h2>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -281,7 +281,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -203,7 +203,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -851,7 +851,7 @@ the connection/database</h2>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -297,7 +297,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -208,7 +208,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -1154,7 +1154,7 @@ for complex select queries</h2>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -866,7 +866,7 @@ method if the database does not support 'TRUNCATE';</h2>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -281,7 +281,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -208,7 +208,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -244,7 +244,7 @@ directly - the settings should be safe!</h2>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -905,7 +905,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:07-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -846,7 +846,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:07-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -615,7 +615,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -67,7 +67,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:07-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -106,7 +106,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:07-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -64,7 +64,7 @@
</script><div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:07-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -80,7 +80,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -69,7 +69,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:07-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -719,7 +719,7 @@ instantiates the specific db driver</p>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -67,7 +67,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -185,7 +185,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -211,7 +211,7 @@ data-fetching methods</p>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -97,7 +97,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -115,7 +115,7 @@ instantiates the specific db driver</p>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -316,7 +316,7 @@ instantiates the specific db driver</p>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -139,7 +139,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -137,7 +137,7 @@
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -492,7 +492,7 @@ display them cleanly</h2>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2012-04-30T16:33:00-04:00.<br></footer></div>
generated on 2012-05-01T09:29:06-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -5176,7 +5176,7 @@ the last query executed]]></description>
</method>
</class>
</file>
<file path="sys/common.php" hash="0264b1b3d451221637b8c43357a46439" package="miniMVC">
<file path="sys/common.php" hash="45898a17d81073e4004f466d3bcf7142" package="miniMVC">
<docblock line="2">
<description><![CDATA[MiniMVC]]></description>
<long-description><![CDATA[<p>Convention-based micro-framework for PHP</p>]]></long-description>
@ -5186,10 +5186,10 @@ the last query executed]]></description>
<tag line="2" name="link" description="https://github.com/timw4mail/miniMVC" link="https://github.com/timw4mail/miniMVC"/>
<tag line="2" name="license" description="http://philsturgeon.co.uk/code/dbad-license"/>
</docblock>
<include line="387" type="Require Once" package="Default">
<include line="404" type="Require Once" package="Default">
<name>Query/autoload.php</name>
</include>
<include line="390" type="Require Once" package="Default">
<include line="407" type="Require Once" package="Default">
<name>miniMVC.php</name>
</include>
<function namespace="default" line="30" package="miniMVC">
@ -5318,117 +5318,117 @@ display them cleanly]]></description>
<long-description><![CDATA[]]></long-description>
</docblock>
</function>
<function namespace="default" line="161" package="miniMVC">
<function namespace="default" line="171" package="miniMVC">
<name>show_error</name>
<type>function</type>
<docblock line="155">
<docblock line="165">
<description><![CDATA[Fatal Error page function]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="155" name="param" description="" type="string" variable="$message">
<tag line="165" name="param" description="" type="string" variable="$message">
<type by_reference="false">string</type>
</tag>
<tag line="155" name="param" description="" type="int" variable="$status_code">
<tag line="165" name="param" description="" type="int" variable="$status_code">
<type by_reference="false">int</type>
</tag>
</docblock>
<argument line="161">
<argument line="171">
<name>$message</name>
<default><![CDATA[]]></default>
<type/>
</argument>
<argument line="161">
<argument line="171">
<name>$status_code</name>
<default><![CDATA[null]]></default>
<type/>
</argument>
</function>
<function namespace="default" line="186" package="miniMVC">
<function namespace="default" line="196" package="miniMVC">
<name>controller_methods</name>
<type>function</type>
<docblock line="180">
<docblock line="190">
<description><![CDATA[Returns routable methods for the specified controller class]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="180" name="param" description="" type="string" variable="$controller">
<tag line="190" name="param" description="" type="string" variable="$controller">
<type by_reference="false">string</type>
</tag>
<tag line="180" name="return" description="" type="array">
<tag line="190" name="return" description="" type="array">
<type by_reference="false">array</type>
</tag>
</docblock>
<argument line="186">
<argument line="196">
<name>$controller</name>
<default><![CDATA[]]></default>
<type/>
</argument>
</function>
<function namespace="default" line="222" package="miniMVC">
<function namespace="default" line="232" package="miniMVC">
<name>route</name>
<type>function</type>
<docblock line="219">
<docblock line="229">
<description><![CDATA[Calls the appropriate module/controller/function based on the url]]></description>
<long-description><![CDATA[]]></long-description>
</docblock>
</function>
<function namespace="default" line="333" package="miniMVC">
<function namespace="default" line="350" package="miniMVC">
<name>site_url</name>
<type>function</type>
<docblock line="327">
<docblock line="344">
<description><![CDATA[Returns a full url from a url segment]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="327" name="param" description="" type="string" variable="$segment">
<tag line="344" name="param" description="" type="string" variable="$segment">
<type by_reference="false">string</type>
</tag>
<tag line="327" name="return" description="" type="string">
<tag line="344" name="return" description="" type="string">
<type by_reference="false">string</type>
</tag>
</docblock>
<argument line="333">
<argument line="350">
<name>$segment</name>
<default><![CDATA[]]></default>
<type/>
</argument>
</function>
<function namespace="default" line="347" package="miniMVC">
<function namespace="default" line="364" package="miniMVC">
<name>to_string</name>
<type>function</type>
<docblock line="340">
<docblock line="357">
<description><![CDATA[Prints out the contents of the object]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="340" name="param" description="" type="\object/array" variable="$data">
<tag line="357" name="param" description="" type="\object/array" variable="$data">
<type by_reference="false">\object/array</type>
</tag>
<tag line="340" name="param" description="" type="string" variable="$method">
<tag line="357" name="param" description="" type="string" variable="$method">
<type by_reference="false">string</type>
</tag>
<tag line="340" name="return" description="" type="string">
<tag line="357" name="return" description="" type="string">
<type by_reference="false">string</type>
</tag>
</docblock>
<argument line="347">
<argument line="364">
<name>$data</name>
<default><![CDATA[]]></default>
<type/>
</argument>
<argument line="347">
<argument line="364">
<name>$method</name>
<default><![CDATA['print_r']]></default>
<type/>
</argument>
</function>
<function namespace="default" line="381" package="miniMVC">
<function namespace="default" line="398" package="miniMVC">
<name>do_include</name>
<type>function</type>
<docblock line="375">
<docblock line="392">
<description><![CDATA[Array_map callback to load a folder of classes at once]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="375" name="param" description="" type="string" variable="$path">
<tag line="392" name="param" description="" type="string" variable="$path">
<type by_reference="false">string</type>
</tag>
<tag line="375" name="return" description="" type="void">
<tag line="392" name="return" description="" type="void">
<type by_reference="false">void</type>
</tag>
</docblock>
<argument line="381">
<argument line="398">
<name>$path</name>
<default><![CDATA[]]></default>
<type/>

View File

@ -147,7 +147,17 @@ function is_like_array(&$var)
function show_404()
{
@header('HTTP/1.1 404 Not Found', TRUE, 404);
die('<h1>404 Not Found</h1>');
// Contain the content for buffering
ob_start();
$message = '404 Not Found';
include(MM_APP_PATH.'/errors/error_404.php');
$buffer = ob_get_contents();
ob_end_clean();
die($buffer);
}
// --------------------------------------------------------------------------
@ -221,7 +231,14 @@ function controller_methods($controller)
*/
function route()
{
$pi = (isset($_SERVER['PATH_INFO'])) ? $_SERVER['PATH_INFO'] : null;
// Get the equivalent to path info
$pi = (isset($_SERVER['PATH_INFO'])) ? str_replace($_SERVER['SCRIPT_NAME'], '', $_SERVER['REQUEST_URI']) : NULL;
// Handle default case, without index.php
if(empty($_SERVER['PATH_INFO']))
{
$pi = '/';
}
// Load the routes config file
$routes = require_once(MM_APP_PATH.'config/routes.php');