Scaffolding
In construction, scaffolding is a temporary framework that is built to support workers and materials. In Stratos and other web application frameworks, scaffolding is used to create a quick CRUD interface to a database table, providing you with a support structure for your application. Although the code generated by the Scaffold plugin is functional, it is not meant to be permanent. You should almost always modify the generated code heavily to fit your application's needs.
Benefits
Why should you even use the Scaffold plugin if the code that is generated will have to be modified heavily? Well, generating a Scaffold provides a number of benefits:
- Fast creation of mockups - by generating web interfaces with minimal effort, you can show your clients some working layouts and database interfaces very quickly. Once you get some feedback, you can immediately begin modifying the web intefaces to meet the client's needs.
- Learning - by looking at the code generate by the Scaffold plugin, you can get a good idea of how a Stratos application works.
- Speed up development time - by generating some of the boring, repetitive database access code, you can immediately begin to focus on the specific application you are working on.