We finally can deploy our blog system. To do so, we only need to copy the whole blog directory to the target Web directory. We may need to modify index.php so that it can locate the correct path where the PRADO framework is installed.
So we have completed our blog system. The process may seem not trivial because it takes us nearly five days to reach here. However, as we stated at the beginning, the main purpose of this tutorial is to help PRADO developers get familiar with the commonly used PRADO techniques. The tutorial is not meant to finish a blog system in five minutes and then we learn nothing.
In summary, developing a DB-driven PRADO application involves the following steps:
- Design and create database
- Create initial application layout using prado-cli
- Set up error handling process to deal with end-user errors
- Create and set up themes
- Design and create master classes to share common page layouts
- Create database classes and set up database connections
- Design and create various pages
- Test and tune up performance
- Deploy the application
Unlike the order in our tutorial, error handling and creating theme are done earlier in the above process. This is because they often require global change in class code and template. For example, we need to replace THttpException with BlogException in our tutorial. If we define stylesheet classes earlier, we could more easily use them when creating page templates.
As a final tip, try to think in object-oriented way during the design and implementation. Use class inheritance and composition wisely, and you will find the whole project is easier to be developed in parallel by multiple developers. The code also has more chance to be reused so that future projects can be finished much faster.