Application

app();

Instantiate the app and load classes from any route or template.
front > html > pages
front > html > templates

            
//Instantiated from template.php
require_once(FILE_APP);
$app = new app();

//Call class and method
$app->get->("new_class")->hello();

            
        

Class Structure

Create new classes by file and folder creation within
back > app

            
class new_class {
	public function hello(){
		echo "Hello World!";
	}
}

            
        

Class Requirements

            
$app->get->("class")->hello();

            
        

Dependency Injections

To give a class access to another class and its methods, you can use 1 or 2 methods below. Importing is not needed.

For example: When your user.php class needs access to the db.php class to create MYSQL queries.

$inject Method

            
class user {
	public $inject = ["db"];
	public function getUsers(){
		return $this->db->search('user');
	}
}

            
        

$app Method

              
class user {
	public $app;
	public function getUsers(){
		return $this->app->get->("db")->search('user');
	}
}