Reorganize app folder

This commit is contained in:
Timothy Warren 2012-05-03 16:07:40 -04:00
parent b9a4cab29b
commit 89f5194ce7
56 changed files with 145 additions and 103 deletions

View File

@ -34,20 +34,21 @@ Database connections are set in /app/config/db.php
* index.php - framework frontend
* app - configuration and app-wide files
* classes - helper classes
* config - configuration files
* errors - error page templates
* modules - MVC triads
* controllers - controller classes
* models - model classes
* views - module-specific views
* views - global page templates
* assets - frontend files
* js - javascript files
* css - css files
* config - minifier configuration files
* modules - MVC triads
* controllers - controller classes
* models - model classes
* views - module-specific views
* sys - core framework classes
### Common Tasks
@ -82,4 +83,11 @@ Database connections are set in /app/config/db.php
* Loading a model (From a controller)
`$this->load_model($model)`
`$this->load_model($model)` - creates an instance of that model as a member of the current class. After loading the model, you can call its methods like so
`$this->[model name]->method()`
* Loading a class
`$this->load_class($class)` - creates an instance of that class as a member of the current class. After loading the class, you can call its methods like so
`$this->[class name]->method()`

View File

@ -369,7 +369,7 @@
</g>
<!-- \\Welcome_Model -->
<g id="node32" class="node"><title>\\Welcome_Model</title>
<a xlink:href="modules.welcome.models.welcome_model.html" xlink:title="Welcome_Model" target="_parent">
<a xlink:href="app.modules.welcome.models.welcome_model.html" xlink:title="Welcome_Model" target="_parent">
<polygon fill="none" stroke="black" points="843,-574 739,-574 739,-538 843,-538 843,-574"/>
<text text-anchor="middle" x="791" y="-552.6" font-family="Courier,monospace" font-size="11.00">Welcome_Model</text>
</a>
@ -381,7 +381,7 @@
</g>
<!-- \\Welcome -->
<g id="node33" class="node"><title>\\Welcome</title>
<a xlink:href="modules.welcome.controllers.welcome.html" xlink:title="Welcome" target="_parent">
<a xlink:href="app.modules.welcome.controllers.welcome.html" xlink:title="Welcome" target="_parent">
<polygon fill="none" stroke="black" points="823,-466 759,-466 759,-430 823,-430 823,-466"/>
<text text-anchor="middle" x="791" y="-444.6" font-family="Courier,monospace" font-size="11.00">Welcome</text>
</a>

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -1583,7 +1583,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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:24-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -679,7 +679,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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -833,7 +833,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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:24-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:24-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -760,7 +760,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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:24-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -724,7 +724,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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:24-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:24-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:24-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -62,6 +62,10 @@
<li class="method public "><a href="#destroy" title="destroy :: Destroy a session"><span class="description">Destroy a session</span><pre>destroy()</pre></a></li>
<li class="nav-header protected">» Protected</li>
<li class="method protected "><a href="#__construct" title="__construct :: Start a session"><span class="description">Start a session</span><pre>__construct()</pre></a></li>
<li class="nav-header">
<i class="icon-custom icon-property"></i> Properties</li>
<li class="nav-header protected">» Protected</li>
<li class="property protected "><a href="#%24sess" title="$sess :: Reference to session superglobal"><span class="description">Reference to session superglobal</span><pre>$sess</pre></a></li>
</ul>
</div>
<div class="span8">
@ -125,6 +129,14 @@
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
<h3>
<i class="icon-custom icon-property"></i> Properties</h3>
<a name="%24sess" id="$sess"> </a><div class="element clickable property protected $sess" data-toggle="collapse" data-target=".$sess .collapse">
<h2>Reference to session superglobal</h2>
<pre>$sess : array</pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
</div>
</div>
</div>
@ -132,7 +144,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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:24-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -869,7 +869,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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -871,7 +871,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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -871,7 +871,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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -1222,7 +1222,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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -886,7 +886,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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -902,7 +902,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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:24-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -842,7 +842,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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:24-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -611,7 +611,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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:24-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:24-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -107,7 +107,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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:24-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:24-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:24-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -709,7 +709,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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -89,7 +89,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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -495,7 +495,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-05-03T13:23:53-04:00.<br></footer></div>
generated on 2012-05-03T16:07:23-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -95,7 +95,7 @@ and organizes database connections</p>]]></long-description>
</method>
</class>
</file>
<file path="sys/db/classes/settings.php" hash="25ad9e3275da6ce2f7330da60951bc89" package="Query">
<file path="sys/db/classes/settings.php" hash="69d30a582c8ec7f2a29151aab896ce1e" package="Query">
<docblock line="2">
<description><![CDATA[Query]]></description>
<long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description>
@ -510,7 +510,7 @@ directly - the settings should be safe!]]></description>
</method>
</class>
</file>
<file path="sys/db/classes/db_pdo.php" hash="4a064284a9d84b52efed79aea6180eeb" package="Query">
<file path="sys/db/classes/db_pdo.php" hash="343830257e8bc84fe3ef14bafbec5287" package="Query">
<docblock line="2">
<description><![CDATA[Query]]></description>
<long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description>
@ -2494,7 +2494,7 @@ in place of the get() method]]></description>
</method>
</class>
</file>
<file path="sys/db/autoload.php" hash="bdce746964645c481b110b7742a1691b" package="Query">
<file path="sys/db/autoload.php" hash="170d8d1f4b74767beb653875962976ae" package="Query">
<docblock line="2">
<description><![CDATA[Query]]></description>
<long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description>
@ -2568,7 +2568,7 @@ with array_map and glob]]></description>
</argument>
</function>
</file>
<file path="sys/db/drivers/pgsql/pgsql_sql.php" hash="bacf01d4b1126f518af6577005ee7ef3" package="Default">
<file path="sys/db/drivers/pgsql/pgsql_sql.php" hash="28f1fe85be6eba57e8ec7373f885faec" package="Default">
<docblock line="2">
<description><![CDATA[Query]]></description>
<long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description>
@ -2742,7 +2742,7 @@ with array_map and glob]]></description>
</method>
</class>
</file>
<file path="sys/db/drivers/pgsql/pgsql_util.php" hash="a649c231c8c931df95afecfe9df3dba4" package="Query">
<file path="sys/db/drivers/pgsql/pgsql_util.php" hash="5bc6c47b681f4bdbb9385d8101666760" package="Query">
<docblock line="2">
<description><![CDATA[Query]]></description>
<long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description>
@ -3369,7 +3369,7 @@ with array_map and glob]]></description>
</method>
</class>
</file>
<file path="sys/db/drivers/mysql/mysql_util.php" hash="ab0732f6bec207873af7a07ff1a0e1e8" package="Query">
<file path="sys/db/drivers/mysql/mysql_util.php" hash="e6dbdd9b0b965f7e09ee0638ed4a7a35" package="Query">
<docblock line="2">
<description><![CDATA[Query]]></description>
<long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description>
@ -3763,7 +3763,7 @@ with array_map and glob]]></description>
</method>
</class>
</file>
<file path="sys/db/drivers/sqlite/sqlite_util.php" hash="5d6c375946512b2b5a5b39bd4ce55ac9" package="Query">
<file path="sys/db/drivers/sqlite/sqlite_util.php" hash="18cd637365896dd9cf94066e517cdaa8" package="Query">
<docblock line="2">
<description><![CDATA[Query]]></description>
<long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description>
@ -4762,7 +4762,7 @@ the query]]></description>
</method>
</class>
</file>
<file path="sys/db/drivers/firebird/firebird_driver.php" hash="6210fab7af8f0e2b5b95e048d2f80beb" package="Query">
<file path="sys/db/drivers/firebird/firebird_driver.php" hash="4f7e9df014cc1df6b92f09f815b9837d" package="Query">
<docblock line="2">
<description><![CDATA[Query]]></description>
<long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description>
@ -5078,7 +5078,7 @@ the last query executed]]></description>
</method>
</class>
</file>
<file path="sys/db/drivers/firebird/firebird_util.php" hash="6c6a6d2b3f952ce5bf66c31ade5d346c" package="Query">
<file path="sys/db/drivers/firebird/firebird_util.php" hash="e51cf49b7bb1e2bb39ed5eab9bf6e98c" package="Query">
<docblock line="2">
<description><![CDATA[Query]]></description>
<long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description>
@ -6457,7 +6457,7 @@ Used for outputing HTML]]></description>
</method>
</class>
</file>
<file path="sys/libraries/session.php" hash="08c3faccd0c710c5cf5acc1d3fc3ba23" package="miniMVC">
<file path="sys/libraries/session.php" hash="3ed8d37d9b53e558ecf123a2f4163f0d" package="miniMVC">
<docblock line="2">
<description><![CDATA[MiniMVC]]></description>
<long-description><![CDATA[<p>Convention-based micro-framework for PHP</p>]]></long-description>
@ -6477,67 +6477,78 @@ Used for outputing HTML]]></description>
<tag line="16" name="package" description="miniMVC"/>
<tag line="16" name="subpackage" description="Libraries"/>
</docblock>
<method final="false" abstract="false" static="false" visibility="protected" namespace="default" line="32" package="">
<property final="false" static="false" visibility="protected" line="37" package="Default">
<name>$sess</name>
<default><![CDATA[[]]]></default>
<docblock line="32">
<description><![CDATA[Reference to session superglobal]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="32" name="var" description="" type="array">
<type by_reference="false">array</type>
</tag>
</docblock>
</property>
<method final="false" abstract="false" static="false" visibility="protected" namespace="default" line="42" package="">
<name>__construct</name>
<type>function</type>
<docblock line="29">
<docblock line="39">
<description><![CDATA[Start a session]]></description>
<long-description><![CDATA[]]></long-description>
</docblock>
</method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="53" package="">
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="63" package="">
<name>__set</name>
<type>function</type>
<docblock line="46">
<docblock line="56">
<description><![CDATA[Set a session value]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="46" name="param" description="" type="string" variable="$key">
<tag line="56" name="param" description="" type="string" variable="$key">
<type by_reference="false">string</type>
</tag>
<tag line="46" name="param" description="" type="mixed" variable="$val">
<tag line="56" name="param" description="" type="mixed" variable="$val">
<type by_reference="false">mixed</type>
</tag>
<tag line="46" name="return" description="" type="void">
<tag line="56" name="return" description="" type="void">
<type by_reference="false">void</type>
</tag>
</docblock>
<argument line="53">
<argument line="63">
<name>$key</name>
<default><![CDATA[]]></default>
<type/>
</argument>
<argument line="53">
<argument line="63">
<name>$val</name>
<default><![CDATA[]]></default>
<type/>
</argument>
</method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="66" package="">
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="76" package="">
<name>__get</name>
<type>function</type>
<docblock line="60">
<docblock line="70">
<description><![CDATA[Retreive a session value]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="60" name="param" description="" type="string" variable="$key">
<tag line="70" name="param" description="" type="string" variable="$key">
<type by_reference="false">string</type>
</tag>
<tag line="60" name="return" description="" type="mixed">
<tag line="70" name="return" description="" type="mixed">
<type by_reference="false">mixed</type>
</tag>
</docblock>
<argument line="66">
<argument line="76">
<name>$key</name>
<default><![CDATA[]]></default>
<type/>
</argument>
</method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="78" package="">
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="88" package="">
<name>destroy</name>
<type>function</type>
<docblock line="73">
<docblock line="83">
<description><![CDATA[Destroy a session]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="73" name="return" description="" type="void">
<tag line="83" name="return" description="" type="void">
<type by_reference="false">void</type>
</tag>
</docblock>
@ -6812,7 +6823,7 @@ display them cleanly]]></description>
</argument>
</function>
</file>
<file path="index.php" hash="a6fec7a10150d40748e88987715e6510" package="miniMVC">
<file path="index.php" hash="ff0f39eb68e70095cd3d5a702e7511b5" package="miniMVC">
<docblock line="2">
<description><![CDATA[MiniMVC]]></description>
<long-description><![CDATA[<p>Convention-based micro-framework for PHP</p>]]></long-description>
@ -6822,10 +6833,10 @@ display them cleanly]]></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="51" type="Require" package="Default">
<include line="52" type="Require" package="Default">
<name>config/config.php</name>
</include>
<include line="54" type="Require" package="Default">
<include line="55" type="Require" package="Default">
<name>common.php</name>
</include>
<constant namespace="default" line="28" package="miniMVC\App">
@ -6847,13 +6858,13 @@ display them cleanly]]></description>
<value><![CDATA[__DIR__.'/sys/']]></value>
</constant>
<constant namespace="default" line="42" package="Default">
<name>MM_MOD_PATH</name>
<value><![CDATA[__DIR__.'/modules/']]></value>
</constant>
<constant namespace="default" line="43" package="Default">
<name>MM_APP_PATH</name>
<value><![CDATA[__DIR__.'/app/']]></value>
</constant>
<constant namespace="default" line="43" package="Default">
<name>MM_MOD_PATH</name>
<value><![CDATA[MM_APP_PATH.'modules/']]></value>
</constant>
</file>
<file path="app/config/config.php" hash="698f6dfa011921b32a16dc256d44a50e" package="miniMVC">
<docblock line="2">
@ -6934,7 +6945,7 @@ display them cleanly]]></description>
<tag line="2" name="license" description="http://philsturgeon.co.uk/code/dbad-license"/>
</docblock>
</file>
<file path="modules/welcome/models/welcome_model.php" hash="b1085eadd43d5b02f70919ac7565adad" package="miniMVC">
<file path="app/modules/welcome/models/welcome_model.php" hash="b1085eadd43d5b02f70919ac7565adad" package="miniMVC">
<docblock line="2">
<description><![CDATA[MiniMVC]]></description>
<long-description><![CDATA[<p>Convention-based micro-framework for PHP</p>]]></long-description>
@ -6967,7 +6978,7 @@ display them cleanly]]></description>
</method>
</class>
</file>
<file path="modules/welcome/controllers/welcome.php" hash="b46fff4b3fd55129850e8edff54a75f5" package="miniMVC">
<file path="app/modules/welcome/controllers/welcome.php" hash="b46fff4b3fd55129850e8edff54a75f5" package="miniMVC">
<docblock line="2">
<description><![CDATA[MiniMVC]]></description>
<long-description><![CDATA[<p>Convention-based micro-framework for PHP</p>]]></long-description>

View File

@ -27,11 +27,11 @@
// PRODUCTION disables error reporting
define('ENVIRONMENT', 'DEVELOPMENT');
if (ENVIRONMENT == 'DEVELOPMENT')
if(ENVIRONMENT == 'DEVELOPMENT')
{
error_reporting(-1);
}
else if (EVIRONMENT == 'PRODUCTION')
else if(EVIRONMENT == 'PRODUCTION')
{
error_reporting(0);
}
@ -39,8 +39,9 @@ else if (EVIRONMENT == 'PRODUCTION')
// Set the default paths
define('MM_BASE_PATH', __DIR__);
define('MM_SYS_PATH', __DIR__.'/sys/');
define('MM_MOD_PATH', __DIR__.'/modules/');
define('MM_APP_PATH', __DIR__.'/app/');
define('MM_MOD_PATH', MM_APP_PATH.'modules/');
$ri = $_SERVER['REQUEST_URI'];
$ind_pos = stripos($ri, "index.php");

View File

@ -21,11 +21,21 @@
*/
class MM_Session{
// Combine traits for more dynamic behavior
// but use Singleton for __invoke, so calling
// that method does not create a new instance
use JSObject, Singleton
{
Singleton::__invoke insteadof JSObject;
}
/**
* Reference to session superglobal
*
* @var array
*/
protected $sess = [];
/**
* Start a session
*/
@ -33,12 +43,12 @@ class MM_Session{
{
session_start();
/**
* Define a unique id for this session
*/
define('SESS_ID', uniqid(uniqid(), TRUE));
$_SESSION[SESS_ID] = array();
// Create a unique session id to prevent collisions
$sess_id = uniqid(uniqid(), TRUE);
// Save a reference to the session for later access
$_SESSION[$sess_id] = [];
$this->sess =& $_SESSION[$sess_id];
}
// --------------------------------------------------------------------------
@ -52,7 +62,7 @@ class MM_Session{
*/
public function __set($key, $val)
{
$_SESSION[SESS_ID][$key] = $val;
$this->sess[$key] = $val;
}
// --------------------------------------------------------------------------
@ -65,7 +75,7 @@ class MM_Session{
*/
public function __get($key)
{
return $_SESSION[SESS_ID][$key];
return $this->sess[$key];
}
// --------------------------------------------------------------------------