If you’re new to Cake PHP then you may not be aware of the best way to get your application setup, in terms of structure, and later creating new Models, Controllers and Views. Now is the time to start leaning about Cake Bake, the automatic tool for setting these up.
If you come from a Ruby on Rails background or have just used it, then you will be aware of how much time these types of tools can save you; The Cake PHP Bake tool is no different. Essentially the Bake tool is a script that you will find within your installation of Cake PHP.
Now unlike most modern (web based) administration scripts, this is one is completely text based, like DOS (Windows before it came Visual), command.com our Unix – but don’t worry it is easy to use and in most cases just requires you to answer yes or no.
The first thing you will need to do is get your version of Cake PHP setup and ready to, in terms of CSS files and the end Database that you want to use. If you new to Cake PHP then you may not know that when you first go to the new installation you can see pretty quick if it has been setup correctly or not. If all went well with the paths then you will see nice graphics explaining this, and once you have setup the database correctly the page will confirm this too.
Remember (for now) that all the Models you are going to have in your application need to have a corresponding table within the database. Also remember that the table should be Singular, whereas the Model needs to be Plural, in terms of the names you give them; this often trips up new Cake PHP coders.
Tags: Analysis-Design, Cake PHP, CakePHP