Book Image

CakePHP 1.3 Application Development Cookbook

Book Image

CakePHP 1.3 Application Development Cookbook

Overview of this book

CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying web applications. While the framework has a lot of documentation and reference guides available for beginners, developing more sophisticated and scalable applications require a deeper knowledge of CakePHP features, a challenge that proves difficult even for well established developers.The recipes in this cookbook will give you instant results and help you to develop web applications, leveraging the CakePHP features that allow you to build robust and complex applications. Following the recipes in this book you will be able to understand and use these features in no time. We start with setting up authentication on a CakePHP application. One of the most important aspects of a CakePHP application: the relationship between models, also known as model bindings. Model binding is an integral part of any application's logic and we can manipulate it to get the data we need and when we need. We will go through a series of recipes that will show us how to change the way bindings are fetched, what bindings and what information from a binding is returned, how to create new bindings, and how to build hierarchical data structures. We also define our custom find types that will extend the three basic ones, allowing our code to be even more readable and also create our own find type, with pagination support. This book also has recipes that cover two aspects of CakePHP models that are fundamental to most applications: validation, and behaviors.
Table of Contents (17 chapters)
CakePHP 1.3 Application Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

About the Reviewers

Nick Baker, owner of WebTechNick LLC and Senior IT/Developer at healthyhearing.com. Nick is a gifted problem solver who sincerely enjoys all aspects of programming and design, from development to implementation - excelling at programming, testing, documentation, and training in multiple platforms. Nick has worked over 13 years focusing on web development and is an expert in multiple web 2.0 frameworks such as CakePHP and Ruby on Rails. Prior to working with Allied Health LLC, Nick studied Computer Science at the University of New Mexico and helped build the Natural Heritage of New Mexico website - a site used by research scientists to store/retrieve data and map the distribution of endangered plants and animals in the Southwest. UNM holds a patent for multi-layer vector searches in GIS as a direct result of Nick's work.

Sam Sherlock is a web developer who is inspired by the innovations of modern web technology and loves to see them put to use in creative ways that benefit the masses. He has been a keen, early adopter of many popular Open source projects (jQuery, SWFObject. and of course, CakePHP).

He is a co-creator of a CakePHP plugin named BakingPlate, soon to be available via Github. One day he hopes to use modern web technologies to create mathematical teaching guides that are accessible and enjoyable to all.

Jeff Smith grew up in a small town in Indiana named Odon, but has lived in Indianapolis, Indiana (USA) for the last 15 years. Web programming is his hobby, but he plans to make it his career later. He enjoys working with many established frameworks, as well as trying out new ones. He is currently working with Drupal, Joomla!, and Ruby on Rails for various small projects. He is looking forward to learning about Non-SQL databases, Lift, and Scala.

Mark Story graduated from the Ontario College of Art and Design with a degree in Illustration. Art being a difficult industry to break into, he tried his hand at programming. This grew into a skill and passion that allowed him to become the lead developer of the CakePHP framework and secure a position with FreshBooks as a front-end developer. Mark's design background and skills in development produce a unique combination of attention to detail, technical expertise, and, above all, patience. Leading the CakePHP project as the primary contributor for the past two years, Mark contributes to several open-source projects in his spare time.