I have been developing using PHP for a long time now, and I have come into contact with a lot of development frameworks. At the same time, I have also found that many of the development frameworks are copied from the JAVA or ROR WEB development frameworks, making it difficult for many beginners to understand certain functions. For example, ActiveRecord. After work, based on my own development experience and the guidance of some PHP experts, I created a development framework that I think is suitable for PHP: Power2php. Of course, Power2php has been tested by many projects, not a tested Framework.
Contents of this development guide:
Power2php Development Guide................................................ .............................1
Foreword........................................ ................................................................. ............1
1.Introduction to Power2php........................................ ........................................1
1.1 Framework features................................................ .............................................2
1.2 Environmental requirements................................................ .................................................2
1.3 Skill requirements................................................ ................................................................. 2
1.4 Directory/File Description........................................ .............................2
2.Power2php operating mechanism and principle...................................... .............3
3.Hello word example................................................ .............................4
4. Controllers in MVC........................................ .............................6
5. Model in MVC........................................ .............................7
6. Views in MVC........................................ .................................................8
7. Advanced applications................................................ ................................................................. ...9
7.1 Second use of Apache’s AddType
Expand