Book Image

CakePHP 2 Application Cookbook

By : James Watts, Cake Software Foundation, Inc.
Book Image

CakePHP 2 Application Cookbook

By: James Watts, Cake Software Foundation, Inc.

Overview of this book

Table of Contents (20 chapters)
CakePHP 2 Application Cookbook
Credits
Foreword
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Introduction


By convention, URLs in CakePHP are formed by the controller name, followed by the action, and then any parameters passed to the action. Routing allows you to customize this by defining exactly how a certain controller or action is called via the URL.

In this chapter, we'll look at a couple of routing solutions and how to achieve them with the framework.