Login   Register  
PHP Classes
elePHPant
Icontem

File: readme.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of tianfan  >  HawkPHP framework  >  readme.txt  >  Download  
File: readme.txt
Role: Documentation
Content type: text/plain
Description: readme
Class: HawkPHP framework
Framework that implements MVC design pattern
Author: By
Last change:
Date: 4 years ago
Size: 1,852 bytes
 

Contents

Class file image Download
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