CANCEL
Subscription
0
Your Cart
(0 item)
You have no products in your basket yet
Save more on your purchases!
Buy 3-4 products and each title is €6.99
Buy 5+ products and each title is €4.99
Savings automatically calculated. No voucher code required.
Checkout
Account
Sign in
New User?
Create Account
Your Subscription
Your Owned Titles
Your Account
Your Orders
Change country
United States
Great Britain
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Singapore
Hungary
Ukraine
Luxembourg
Estonia
Lithuania
South Korea
Turkey
Switzerland
Colombia
Taiwan
Chile
Norway
Ecuador
Indonesia
New Zealand
Cyprus
Denmark
Finland
Poland
Malta
Czechia
Austria
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Netherlands
Bulgaria
Latvia
South Africa
Malaysia
Japan
Slovakia
Philippines
Mexico
Thailand
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
SALE ENDS IN
0
Days
:
00
Hours
:
00
Minutes
:
00
Seconds
GO TO
TOP
You're reading from
CakePHP 2 Application Cookbook
Over 60 useful recipes for rapid application development with the CakePHP framework.
Product type
Paperback
Published in
Aug 2014
Publisher
ISBN-13
9781782160083
Length
346 pages
Edition
3rd Edition
Languages
PHP
Tools
CakePHP
Concepts
Server Side Web Development
Table of Contents
(14) Chapters
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
1. Lightning Introduction
FREE CHAPTER
Introduction
Listing and viewing records
Adding and editing records
Deleting records
Adding a login
Including a plugin
2. Advanced Routing
Introduction
Adding a prefix
Handling languages
Custom route class
Dispatch filter
3. HTTP Negotiation
Introduction
Parsing extensions
Processing Ajax requests
Building a response
Uploading a file
Using a detector
Working with cookies
Cache control
Error handling
4. API Strategies
Introduction
RESTful resources
Exposing a web service
Consuming a service
Authentication API
API versioning
5. Using Authentication
Introduction
The HTTP authentication
Custom authorize class
Facebook authentication
Custom RBAC
Working with ACL
6. Model Layer
Introduction
Has and belongs to many (HABTM)
Joining through
Containing models
Custom finders
On-the-fly associations
Using transactions
7. Search and Pagination
Introduction
Pagination
Basic search and filter
The Search plugin
Advanced search
8. Events System
Introduction
Listeners and subscribers
Event-driven process
Event stacking
Managing event priorities
9. Creating Shells
Introduction
Console API
Import parser
Running cron shells
Using the I18n shell
10. View Templates
Introduction
Using blocks
Building an XML view
Generating a PDF
Writing some PDF content to a file
Translations
View caching
The AssetCompress plugin
11. Unit Tests
Introduction
Dependency Injection
Creating a fixture
Mock objects
Stub method configuration
Model unit testing
12. Migrations
Introduction
Schema handling
Syncing changes
The Migrations plugin
Injecting data
Index
Chapter 5. Using Authentication
In this chapter, we will cover the following recipes:
The HTTP authentication
Custom authorize class
Facebook authentication
Custom RBAC
Working with ACL
The rest of the chapter is locked
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Start free trial
Previous Section
Section 1 of 7
Next Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Sign up now
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Start free trial
Renews at
$19.99/month
. Cancel anytime
€8.99 | ALL EBOOKS, VIDEOS & AUDIOBOOKS
Your learning journey starts here: 8000+ learning resources for
€8.99
each!
SHOP NOW
Personalised recommendations for you
Based on your interests and search pattern
Modern Full-Stack React Projects
Read more
Full-Stack React Projects is a complete guide to learning full-stack web development, understanding the creation and integration of backend systems, and advancing your career as a frontend developer.
Read more
Jun 2024
16h 52m
Mastering Node.js Web Development
Read more
Explore Node.js with practical examples that will teach you how to utilize open-source packages for real-world solutions. Gain the skills to develop and deploy server-side applications that enhance your client-side projects.
Read more
Jun 2024
25h 56m
Reactive Patterns with RxJS and Angular Signals
Read more
This RxJS book will help you understand the core concepts of RxJS and provide practical patterns to make your code more reactive and declarative. You'll also understand Angular Signals, which provide another way to improve code reactivity.
Read more
Jul 2024
8h 28m
API Testing and Development with Postman
Read more
Whether you are a tester or a developer working with APIs, you'll be able to put your knowledge to work with this practical guide to using Postman. The book provides a hands-on approach to implementing and learning the associated methodologies that will have you up-and-running and productive in no time.
Read more
Jun 2024
11h 56m
FastAPI Cookbook
Read more
This book helps you unlock the power of FastAPI to build high-performing web apps and APIs by taking you through the basics like routing and data validation through to advanced topics, such as custom middleware and WebSockets.
Read more
Aug 2024
11h 56m
Mastering Spring Boot 3.0
Read more
This hands-on guide empowers you to develop scalable and efficient applications. You'll also learn microservices patterns, reactive programming, and security measures for building robust backend systems.
Read more
Jun 2024
8h 32m
Nuxt 3 Projects
Read more
This book is a comprehensive guide to Nuxt.js, which takes you from the basics to advanced topics. Uniquely, this book emphasizes practical, project-based learning, tackling real-world problems.
Read more
Jun 2024
7h 40m
Vue.js 3 for Beginners
Read more
Learning a new language by following video tutorials, blog posts, and documentation is a tiresome activity. This book will take you on an exciting journey of becoming a proficient Vue.js developer through a practical, step-by-step approach.
Read more
Sep 2024
10h 4m
Full-Stack Web Development with TypeScript 5
Read more
The book emphasizes best practices, debugging, performance optimization, and scalable code structure, helping you develop practical skills in frontend and backend development, database integration, and AI integration.
Read more
Aug 2024
9h 4m
Mastering Flask Web and API Development
Read more
The book is an introduction to Flask that will showcase its baseline, core, and advanced integration features to enable you to solve enterprise-related problems and issues in both web and API development.
Read more
Aug 2024
16h 28m