Update readme
This commit is contained in:
parent
b3ffa9e1b5
commit
de471b95d0
@ -31,18 +31,17 @@ Database connections are set in /app/config/db.php
|
||||
|
||||
### File Structure
|
||||
|
||||
* index.php - framework frontend
|
||||
* index.php - framework bootstrap
|
||||
|
||||
* 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
|
||||
|
||||
* errors - error page templates
|
||||
|
||||
* assets - frontend files
|
||||
* js - javascript files
|
||||
|
@ -30,19 +30,5 @@ class MM_Model extends miniMVC {
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Adds the database class to the current model class
|
||||
*
|
||||
* @param string $name
|
||||
* @return void
|
||||
*/
|
||||
public function load_db($name="default")
|
||||
{
|
||||
$this->db =& db::get_instance($name);
|
||||
}
|
||||
|
||||
}
|
||||
// End of model.php
|
Loading…
Reference in New Issue
Block a user