Recommend this page to a friend! |
Download .zip |
Info | View files (19) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2010-02-20 (6 years ago) | Not enough user ratings | Total: 989 | All time: 3,539 This week: 880 |
Version | License | PHP version | Categories | |||
hawkphp 0.03 | BSD License | 5.2 | PHP 5, Libraries, Design Patterns |
Description | Author | |
This package is a framework that implements MVC design pattern. |
Author: nickname:天凡(['ti^n`f^n]) name:Zhangbo nation:China location:Henan province,Zhengzhou email:arrbo@163.com Introduce: hawkphp need php5 and apache.it can run well with rewrite mode or without it. hawkphp only a MVC core and have no supply DB class. How to use: 1.you should set your webroot to 'public_html'. 2.if you want to operate DB,you need copy a DB class file to /hawkphp/lib ,and the DB class file name must be same as the class name if you want let framework auto load.for example:your class name is 'mysqlDB',the class file must be mysqlDB.php. if you use other filename,you need require the file in program first.you other class file used just like this. 3.dont't use __construct ,you must use method init() to instead it in controller file. action init() will run first no matter what actions you request; 4.your controller file name must be controllernameController.php,view file name must be viewnameView.php 5.you can request your program with url /controller/action/var1/param1/var2/param2/var3/param3.... if your HTTP server dont support rewrite mode,you need this url /index.php?c=controller&a=action&var1=param1&var2=param2... 5.you need use $this-view->sign()method to regist a var to VIEW, forexample,you regist an array in a controller file. $a=array(1,2,3); $this->view-sing('aaa',$a); in VIEW: print_r($this->aaa); 6. CONTROLLER can work well with no VIEW.and use $this->view->render() method to load VIEW file. 7. other explanation you can view exammple in /application/controller/indexController.php 8. under hawkphp/application ,there are many folder,but only controller,view,config folders is usefull for this framework now. announce:if you modify hawkphp,you need send a copy for me .and it's has no other limitation.it's follow BSD license |
Files |
File | Role | Description | ||
---|---|---|---|---|
hawkphp (3 directories) | ||||
public_html (2 files, 1 directory) | ||||
readme.txt | Doc. | readme |
Files | / | hawkphp | / | application |
File | Role | Description | ||
---|---|---|---|---|
cache (1 file) | ||||
config (1 file) | ||||
controller (2 files) | ||||
model (1 file) | ||||
view (1 directory) |
Files | / | hawkphp | / | application | / | config |
File | Role | Description |
---|---|---|
dbconfig.ini.php | Example | db ini file example |
Files | / | hawkphp | / | application | / | controller |
File | Role | Description |
---|---|---|
indexController.php | Class | controller and action example |
testController.php | Class | controller and action example |
Files | / | hawkphp | / | application | / | view | / | index |
File | Role | Description |
---|---|---|
aaaaView.php | Example | a VIEW example for controller `index` |
indexView.php | Data | a VIEW example for controller `index` and action `index` |
Files | / | hawkphp | / | hawkphp |
File | Role | Description |
---|---|---|
controller.php | Class | framework core |
db.php | Class | dbconfig |
loadclass.php | Aux. | framework core |
loader.php | Class | framework core |
parseinifile.php | Class | framework core |
router.php | Class | main router |
view.php | Class | view.php |
Files | / | public_html |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
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.