Recommend this page to a friend! |
Download .zip |
Info | View files (8) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2012-06-07 (4 years ago) | 62% | Total: 677 | All time: 4,579 This week: 1,068 |
Version | License | PHP version | Categories | |||
loader 1.0 | BSD License | 5.3 | PHP 5, Language |
Description | Author | |||||||||||||
This class can automatically load MVC and library classes. |
|
Installation is weary simple. Folow next steps: ---------------------------------------------------------------- 1. Initialize loader class. $loader = new Loader(); Or u can use getInstanece() like this. Loader::getInstance(); All class from libraries, controllers, models will be loaded. Just need create new instance for all classes. Dont need include or require function. ---------------------------------------------------------------- Methods: ---------------------------------------------------------------- * getInstance() = Singleton instance * load_specific_library() = Method for load specific library. * initialize_class() = Methot for initializing defined class * user_library() = Load all user lib's from app/library directories. * system_library() = Load all core library from /lib/ directory or system/ * user_model() = Load all user models from /app/models/ * user_controller() = Load all user controller from /app/controllers/ * controller() = Load specific controller from /app/controllers/ * model() = Load specific model from /app/models/ * library() = Load specific library from /app/models/ * core_library() = Load specific library from /lib/ * config() = Load config files from /app/config. Create dir if missing. |
Files |
File | Role | Description | ||
---|---|---|---|---|
app (4 directories) | ||||
lib (1 file) | ||||
example.php | Example | example | ||
index.php | Example | Example how to use | ||
readme.txt | Doc. | How to install |
Files | / | app |
File | Role | Description | ||
---|---|---|---|---|
controllers (1 file) | ||||
library (1 file) | ||||
models (1 file) | ||||
views (1 file) |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|