O'Reilly logo

Beginning CakePHP: From Novice to Professional by David Golding

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 5Creating Simple Views andBaking in the Console

So far, you've really only used the scaffolding feature. Although scaffolding can help test associations and get your database working well with Cake, it does not give you much control over design, and the scaffolding does not go beyond simple CRUD operations either. To get into the individual form elements or to change how you want the list view to display the results, you must manually create and edit the views themselves.

Fortunately, Cake comes with some handy console scripts that can help you generate those views, as well as perform other important development tasks. In this chapter, I'll introduce the Bake script, which will essentially run like the scaffold and analyze the database ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required