More descriptive README
This commit is contained in:
parent
36f3ac3148
commit
f12070b262
42
README.md
42
README.md
@ -2,26 +2,38 @@
|
||||
|
||||
miniMVC is a minimalistic Modular MVC framework, with built-in minifier, and pure-PHP templating system.
|
||||
|
||||
It has the following file structure
|
||||
### Unique features
|
||||
#### Extensive use of PHP's magic methods on the base class
|
||||
* `__toString()` method allows a view of the current class object when the current class object is used as a string. If you prefer `var_dump()` or `var_export()`, you can pass the name of that function if you call the `__toString` method directly.
|
||||
|
||||
*index.php* - framework frontend
|
||||
Eg. `$this . "string"`, `$this->__toString()`, `echo $this`;
|
||||
|
||||
*app* - configuration and app-wide files
|
||||
*config* - configuration files
|
||||
*errors* - error page templates
|
||||
*views* - global page templates
|
||||
* `__call()` method allows (in PHP 5.3+) the dynamic addition of callable closure objects
|
||||
|
||||
*assets* - frontend files
|
||||
*js* - javascript files
|
||||
*css* - css files
|
||||
*config* - minifier configuration files
|
||||
Eg. `$this->foo = function($baz){}` is callable as `$this->foo()`, with the current object as the last argument
|
||||
|
||||
*modules* - MVC triads
|
||||
*controllers* - controller classes
|
||||
*models* - model classes
|
||||
*views* - module-specific views
|
||||
##### Database class is an extension of PHP's PDO class.
|
||||
|
||||
*sys* - core framework classes
|
||||
* miniMVC supports any database supported by PDO
|
||||
* Database class also implements the `__toString` method
|
||||
|
||||
### File Structure
|
||||
|
||||
* index.php - framework frontend
|
||||
|
||||
* app - configuration and app-wide files
|
||||
* config - configuration files
|
||||
* errors - error page templates
|
||||
* 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
|
Loading…
Reference in New Issue
Block a user