PHP Classes

HawkPHP framework: Framework that implements MVC design pattern

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 32%Total: 1,001 All time: 3,648 This week: 455Up
Version License PHP version Categories
hawkphp 0.03BSD License5.2PHP 5, Libraries, Design Patterns
Description 

Author

This package is a framework that implements MVC design pattern.

It provides a base loader class that routes actions, a base controller class, a base view class, and a configuration class that parses INI files.

Picture of tianfan
Name: tianfan <contact>
Classes: 3 packages by
Country: China China

 

Details

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 folder image Files (19)  
File Role Description
Files folder imagehawkphp (3 directories)
Files folder imagepublic_html (2 files, 1 directory)
Accessible without login Plain text file readme.txt Doc. readme

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,001
This week:0
All time:3,648
This week:455Up
User Ratings User Comments (1)
 All time
Utility:41%StarStarStar
Consistency:33%StarStar
Documentation:41%StarStarStar
Examples:41%StarStarStar
Tests:-
Videos:-
Overall:32%StarStar
Rank:4267
 
cool!
15 years ago (rodrigo prado)
80%StarStarStarStarStar