CakePHP Bake preparation

Published on May 7, 2010 by Mr nCoded   ·   No Comments

Introduction to Cake Bake

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.

Getting Ready

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:  , ,

Readers Comments (0)




Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

Share & Review
Share

Review http://www.ncoded.com on alexa.com
Advertisment
Popular Articles
KingsCollegeChapelWest

Cambridge SEO, SEM & Web Marketing

With the Universtiy of Cambridge being on ...
seo1

2011 SEO Strategy using automated tools

After the massive response to my first ...
Social SEO Media

SEO Analysis of Amplify, Ping.fm, and Posterous

Most organisations spend time and effort on ...
danger

Bad Bad Web Techniques

OK it has been a long time ...
fishing_man

The Fisherman SEO Analogy

This used to be the main analogy ...
blogcomments

Blog Comments SEO

It would seem strange that most website ...
wp

WordPress SEO

Wordpress offers owners key requirements for SEO, ...
an

Setting up Google Analytics

[caption id="" align="aligncenter" width="500" caption="Screenshot of Google ...
Advertisments