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

  Files folder image Files  /  hawkphp  
File Role Description
Files folder imageapplication (5 directories)
Files folder imagehawkphp (7 files)
Files folder imagelib (1 file)

  Files folder image Files  /  hawkphp  /  application  
File Role Description
Files folder imagecache (1 file)
Files folder imageconfig (1 file)
Files folder imagecontroller (2 files)
Files folder imagemodel (1 file)
Files folder imageview (1 directory)

  Files folder image Files  /  hawkphp  /  application  /  cache  
File Role Description
  Accessible without login Plain text file readme.txt Doc. a folder

  Files folder image Files  /  hawkphp  /  application  /  config  
File Role Description
  Accessible without login Plain text file dbconfig.ini.php Example db ini file example

  Files folder image Files  /  hawkphp  /  application  /  controller  
File Role Description
  Plain text file indexController.php Class controller and action example
  Plain text file testController.php Class controller and action example

  Files folder image Files  /  hawkphp  /  application  /  model  
File Role Description
  Accessible without login Plain text file readme.txt Data readme

  Files folder image Files  /  hawkphp  /  application  /  view  
File Role Description
Files folder imageindex (2 files)

  Files folder image Files  /  hawkphp  /  application  /  view  /  index  
File Role Description
  Accessible without login HTML file aaaaView.php Example a VIEW example for controller `index`
  Accessible without login HTML file indexView.php Data a VIEW example for controller `index` and action `index`

  Files folder image Files  /  hawkphp  /  hawkphp  
File Role Description
  Plain text file controller.php Class framework core
  Plain text file db.php Class dbconfig
  Accessible without login Plain text file loadclass.php Aux. framework core
  Plain text file loader.php Class framework core
  Plain text file parseinifile.php Class framework core
  Plain text file router.php Class main router
  Plain text file view.php Class view.php

  Files folder image Files  /  hawkphp  /  lib  
File Role Description
  Accessible without login Plain text file readme.txt Doc. readme.txt

  Files folder image Files  /  public_html  
File Role Description
Files folder imageimage (1 file)
  Accessible without login Plain text file .htaccess Data .htaccess file for apache rewrite mode
  Accessible without login Plain text file index.php Example entrance file

  Files folder image Files  /  public_html  /  image  
File Role Description
  Accessible without login Plain text file readme.txt Data 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