FAQ #48
Question: What is scaffolding?
Answer: It's a Cake frill that allows to painlessly create CRUD (Create, Read, Update, Delete) controls for a given model without really needing to define anything. You enable scaffolding just by declaring the $scaffold property in your controller. The only requirements for scaffolding is that you create a model and matching controller. No need to define anything else within them!
//your controller
class BikesController extends AppController{
var $scaffold;
//nothing else!
}
Example:
//your model
class Bike extends AppModel{
//empty!!!
}
class Bike extends AppModel{
//empty!!!
}
//your controller
class BikesController extends AppController{
var $scaffold;
//nothing else!
}
Warning:
Scaffolding isn't meant for production apps! It's far too basic.
Related Faq:What is CRUD?
Category:Model
2nd Category:Controller