PHP Classes
elePHPant
Icontem

HawkPHP framework: Framework that implements MVC design pattern

Recommend this page to a friend!
  Info   View files View files (19)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2010-02-20 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 989 All time: 3,539 This week: 880Up
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: 2 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  
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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:989
This week:0
All time:3,539
This week:880Up
User Comments (1)
cool!
6 years ago (rodrigo prado)
80%StarStarStarStarStar