Recommend this page to a friend! |
Download .zip |
Info | View files (21) | Download .zip | Reputation | Support forum (2) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2008-11-12 (7 years ago) | 60% | Total: 3,012 This week: 2 | All time: 1,171 This week: 591 |
Version | License | PHP version | Categories | |||
mvclike 1.0.0 | Freeware | 4.0.4 | Libraries, Design Patterns |
Description | Author | |||||||||||||
This package is a framework that implements the MVC design pattern. |
|
LICENSE: Feel free to use it anyway you like. This application is kind of like an MVC setup except that I don't really like the way MVC frameworks work so I made this instead. The idea is that each url segment for your application (ie. /admin/) would have it's own module and views and that the application would work in PHP 4. I haven't really commented the code... but if you look at it you should be able to figure out how it works fairly easily. To test: Just upload the files to the root of your domain. Make sure you have mod_rewrite installed. navigate to http://www.yourdomain.com to test the defaultModule class navigate to http://www.yourdomain.com/test/ to test the testModule class navigate to http://www.yourdomain.com/blah/ to test the errorModule class |
Files |
File | Role | Description | ||
---|---|---|---|---|
Application (1 directory) | ||||
Modules (3 files) | ||||
Views (3 directories) | ||||
.htaccess | Example | htaccess | ||
index.php | Example | bootstrap | ||
readme.txt | Doc. | README |
Files | / | Application | / | classes |
File | Role | Description |
---|---|---|
router.class.php | Class | Router Class |
view.class.php | Class | View Class |
Files | / | Modules |
File | Role | Description |
---|---|---|
defaultModule.php | Class | Default Module Class |
errorModule.php | Class | Error Module Class |
testModule.php | Class | Test Module Class |
Files | / | Views | / | default |
File | Role | Description |
---|---|---|
default_index.php | Example | Default View Index |
footer.php | Example | Default Footer |
header.php | Example | Default Header |
index.php | Example | Index |
Files | / | Views | / | error |
File | Role | Description |
---|---|---|
error_default.php | Example | Error Default View |
error_notfound.php | Example | 404 View |
footer.php | Example | Error Footer |
header.php | Example | Error Header |
index.php | Example | Index |
Files | / | Views | / | test |
File | Role | Description |
---|---|---|
footer.php | Example | Test Footer |
header.php | Example | Test Header |
index.php | Example | Index |
test_default.php | Example | Test Default View |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Ratings | User Comments (1) | ||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Pages that reference this package |
Question for Developers - PHP or any other OOP language There isn't a set structure really and including the file shouldn't impact performance... |