|
PHP has many framework. I have gone through some of them. The difficulty I felt in those framework is the learning curve. Most of it uses complex directory stuructures and difficult to remember naming conventions. Also every framework uses their own methods for templating and db access. You don't have an option to put in something you are familiar with like smarty or something. I started web programming with PHP. I felt it as a powerful language in case of speed and ease of use for web. When I start using Java for web programming I felt servlets as a powerful concept. So just thought of combing the servlet concept and PHP. It will be handy if the design concepts of servlets and speed and ease of use of PHP can be combined. This framework is an attempt on that path. How it worksAll the request with framework extension .do will be routed thorough framework controller framework/controller.php . A typical request will be like http://yourdomain.com/login.do. Note: You can change default framework extension .do with whaterver you want. It can be abbrevations of your application name. You just need to edit the .htaccess. Controller initializes the framework. The first thing it do is loading the config.yaml. The initializeListner will be callled where the main actions are performing. It initializes the request and response. Then it searches for the class corresponding to url pattern from loaded config.yaml. If it finds the class from scripts: in config.yaml , it initializes the class and calls the doGet or doPost methods corresponding to the requests received. The request and response properties can be obtained from $request and $response on these funtions. Next milestoneORM Note: For suggestions or issues open an issue or mail me mailtobiju@gmail.com Look wiki for more.....
|