Recommend this page to a friend! |
Download .zip |
Info | View files (21) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2015-11-20 (11 months ago) | Not enough user ratings | Total: 796 This week: 7 | All time: 4,123 This week: 145 |
Version | License | PHP version | Categories | |||
php7mvc 1.0 | MIT/X Consortium ... | 7.0 | Libraries, Design Patterns, PHP 7 |
Description | Author | |
This package is a framework that uses MVC design pattern under PHP 7. |
Manon Systems MVC Framework
To create a new Controller
Create a new PHP Class and name it exactly as the route will be.
Example: If you will create a dashboard and the route will be Dashboard, then the file will be Dashboard.php
Into Dashboard.php you need to use the following namespaces:
\Session\Handler To handle the Session library \Views\Main To handle the Views \Db\Connect To handle the Database library
Create a class named Dashboard exactly like the same file name
Create a public static magic function called __init() and you can assign a retun type fot it like:
__init() : int __init() : string __init() : boolean __init() : float
etcetera...
Using this function, you can use your own custom functions from within the class.
Then, you need to edit your DB Definitions using the file DbDefinitions into the libs folder.
Files |
File | Role | Description | ||
---|---|---|---|---|
Controllers (4 files, 1 directory) | ||||
libs (3 files, 2 directories) | ||||
Views (1 file, 2 directories) | ||||
.gitignore | Data | Auxiliary data | ||
.htaccess | Data | Auxiliary data | ||
index.php | Example | Class source | ||
LICENSE | Lic. | Auxiliary data | ||
README.md | Doc. | Auxiliary data |
Files | / | Controllers |
File | Role | Description | ||
---|---|---|---|---|
Doctors (4 files) | ||||
Controller.php | Class | Class source | ||
Doctors.php | Class | Example script | ||
loginStart.php | Class | Class source | ||
MainController.php | Class | Class source |
Files | / | Controllers | / | Doctors |
File | Role | Description |
---|---|---|
Add.php | Class | Example script |
Delete.php | Class | Example script |
Edit.php | Class | Example script |
List.php | Class | Example script |
Files | / | libs |
File | Role | Description | ||
---|---|---|---|---|
Db (1 file) | ||||
Mail (1 file) | ||||
Bootstrapper.php | Class | Class source | ||
DbDefinitions.php | Class | Class source | ||
SessionHandler.php | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.