In the previous chapter we generated the project and modules, built our database, generated the ORM layer, and created a working wireframe of our milkshake application. Now, we can start to generate a working prototype that uses the database.
By the end of this chapter, you will learn how to:
Pre-populate the database with test data using Propel
Create business logic within the ORM
Use an ORM to increase productivity
Create more complex routing rules
Download and install a plugin
Separate chunks of template code into partials
Although we have only created five tables, looking in the lib/model
folder, and the subfolders of om/
and map/
reveals that there are a total of 25 files. The files that we are interested in are located in the lib/model
and lib/model/om
folders. The files generated in the lib/model/om
folder contain all of the base classes, and the files in the lib/model
folder contain the custom classes...