Book Image

CakePHP Application Development

By : Ahsanul Bari, Anupom Syam
Book Image

CakePHP Application Development

By: Ahsanul Bari, Anupom Syam

Overview of this book

<p>Cake is a rapid development framework for PHP that uses well-known design patterns and provides a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss of flexibility. It means you can code faster, your code is better, and it makes writing Web 2.0-style apps a snap.<br /><br />This book offers step-by-step instructions to learn the CakePHP framework and to quickly develop and deploy web-based applications. It introduces the MVC pattern and coding styles using practical examples. It takes the developer through setting up a CakePHP development and deployment environment, and develops an example application to illustrate all of the techniques you need to write a complete, non-trivial application in PHP. It aims to assist PHP programmers to rapidly develop and deploy well-crafted and robust web-based applications with CakePHP.</p>
Table of Contents (18 chapters)
CakePHP Application Development
Credits
About the Authors
About the Reviewer
Preface
Index

Setting Up the Cake Shell


Before we start using the CakePHP shell, we need to set up the Cake shell in our operating system. The process of the setup varies depending on the operating system. But the main idea is to add our /cake/console/ folder to the path variable of the operating system. We will first see how to do that in Windows XP/2000. After that, we will see how we can set it up in Linux.

Setting Up the Cake Shell in Windows

Setting up the Cake shell in Windows is easy. We just have to add our PHP installation path and Cake's console directory's path to the system variable path. We will now see how to do that step by step.

Time for Action: Setting Up the Cake Shell in Windows

  1. Create a new Cake project named rapidcake.

  2. Go to the Control Panel of your operating system. Click on the System item. A dialog box will open up. Go to the Advanced tab of that window.

  3. At the bottom of this window, find a button named Environment Variables. Click on that button, it will pop up another dialog box...