PHP Classes
elePHPant
Icontem

MVC Like Modular Framework: Framework that implements the MVC design pattern

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (21)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-11-12 (6 years ago) RSS 2.0 feedStarStarStarStar 76%Total: 2,888 This week: 5All time: 1,217 This week: 204Up
Version License PHP version Categories  
mvclike 1.0Freeware4.0.4Libraries, Design Patterns
Description Author  

This package is a framework that implements the MVC design pattern.

It works in such way that each URL directory of an application has its own module.

Each module is implemented by a class with a name based on the directory name. That class loads the view and action classes.

Picture of Shawn McAllister
Name: Shawn McAllister <contact>
Classes: 1 package by
Country: United States United States
Age: 46
All time rank: 1024134 in United States United States
Week rank: 232 Up17 in United States United States Up

Details provided by the author  
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 folder image Files  
File Role Description
Files folder imageApplication (1 directory)
Files folder imageModules (3 files)
Files folder imageViews (3 directories)
Accessible without login Plain text file .htaccess Example htaccess
Accessible without login Plain text file index.php Example bootstrap
Accessible without login Plain text file readme.txt Doc. README

  Files folder image Files  /  Application  
File Role Description
Files folder imageclasses (2 files)

  Files folder image Files  /  Application  /  classes  
File Role Description
  Plain text file router.class.php Class Router Class
  Plain text file view.class.php Class View Class

  Files folder image Files  /  Modules  
File Role Description
  Plain text file defaultModule.php Class Default Module Class
  Plain text file errorModule.php Class Error Module Class
  Plain text file testModule.php Class Test Module Class

  Files folder image Files  /  Views  
File Role Description
Files folder imagedefault (4 files)
Files folder imageerror (5 files)
Files folder imagetest (4 files)

  Files folder image Files  /  Views  /  default  
File Role Description
  Accessible without login Plain text file default_index.php Example Default View Index
  Accessible without login Plain text file footer.php Example Default Footer
  Accessible without login Plain text file header.php Example Default Header
  Accessible without login Plain text file index.php Example Index

  Files folder image Files  /  Views  /  error  
File Role Description
  Accessible without login Plain text file error_default.php Example Error Default View
  Accessible without login Plain text file error_notfound.php Example 404 View
  Accessible without login Plain text file footer.php Example Error Footer
  Accessible without login Plain text file header.php Example Error Header
  Accessible without login Plain text file index.php Example Index

  Files folder image Files  /  Views  /  test  
File Role Description
  Accessible without login Plain text file footer.php Example Test Footer
  Accessible without login Plain text file header.php Example Test Header
  Accessible without login Plain text file index.php Example Index
  Accessible without login Plain text file test_default.php Example Test Default View

 Version Control Unique User Downloads Download Rankings  
 0%Total:2,888All time:1,217
 This week:5This week:204Up
User Ratings User Comments (1)  
 All time
Utility:100%StarStarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:83%StarStarStarStarStar
Examples:91%StarStarStarStarStar
Tests:-
Videos:-
Overall:76%StarStarStarStar
Rank:45