Learning CakePHP 3

Learning CakePHP 3

4h 45mBeginner2016-03-22

Authors

Justin Yost

Justin Yost

Web Developer, Programmer

Course details

CakePHP is a registered trademark of Cake Software Foundation, Inc.. Cake Software Foundation, Inc. is not affiliated with Lynda.com, nor does it endorse, sponsor, or otherwise support Lynda.com services.

CakePHP is a critical framework for PHP developers. It helps them build complex web applications faster and more efficiently. If you want to use CakePHP 3 (the latest version of the framework) in your own development workflow, this is the place to start.

Justin Yost provides an overview of the underlying MVC pattern in CakePHP, and the installation and configuration process for Mac and Windows. He shows how to use the CakePHP shell to build your first basic CakePHP app, and then discusses each application element in depth: controllers, models, views, components, behaviors, helpers, and utilities. At each step, he discusses the relevant new features and enhancements in CakePHP 3, including new components; performance, session management, and ORM improvements; and localization.

In later chapters, the course gets a little more advanced. Watch these tutorials to learn how to send email with CakePHP, extend CakePHP with plugins, and write unit tests to identify and eliminate bugs in your code. Justin also shows how to add security to your CakePHP apps with a basic user authentication system.

Learning objectives
Installing and configuring CakePHP
Using the CakePHP shell console
Creating CakePHP controllers
Saving data in a CakePHP model
Finding and deleting data
Working with entity methods
Creating CakePHP views
Using and customizing components to share functionality between controllers
Creating behaviors
Formatting data with helpers
Developing faster with CakePHP utilities: hash, collections, and logging
Sending CakePHP email
Creating a custom plugin
Testing CakePHP applications
Authorizing users of CakePHP applications

Skills covered

CakePHPCake SoftwareBack-End Web DevelopmentFull-Stack Web DevelopmentFront-End Web DevelopmentLearningWeb Development

Concepts

Introduction

  • Welcome
  • What you should know before watching this course
  • Using the exercise files

What Is CakePHP

  • Overview of CakePHP
  • CakePHP as an MVC framework
  • Convention over configuration

Getting Started with CakePHP

  • CakePHP requirements
  • Installation of CakePHP on Mac OS X
  • Installation of CakePHP on Windows
  • CakePHP configuration
  • CakePHP folder structure conventions
  • CakePHP naming conventions

Building Our First CakePHP App

  • CakePHP shell
  • Bake a CakePHP project

CakePHP Controllers

  • Working with controllers
  • Controller and request flow
  • Controller methods
  • Controller parameters
  • Controller pagination
  • Additional controller properties

CakePHP Models

  • Working with models
  • Create a hasOne association
  • Use belongsTo, hasMany, and belongsToMany associations
  • Find your data
  • Retrieve associated data
  • Save your data
  • Delete your data
  • Standard CakePHP validation
  • Create custom validation
  • Entity methods
  • Entity setters and getters

CakePHP Views

  • Working with views
  • View elements
  • View blocks
  • View layouts

CakePHP Components

  • Introduction to CakePHP components
  • Standard CakePHP components
  • Create and use a custom component

CakePHP Behaviors

  • Introduction to CakePHP Behaviors
  • Standard CakePHP Behaviors
  • Creating and using a custom Behavior

CakePHP Helpers

  • Introduction to CakePHP helpers
  • Standard CakePHP helpers
  • Creating and using a custom helper

CakePHP Utilities

  • Hash
  • Collections
  • Logging
  • Modelless forms

CakePHP Email

  • Sending an email
  • Sending email via the mailer

CakePHP Plugins

  • What is a CakePHP plugin
  • Installing CakePHP plugins
  • Create and use a custom plugin

Unit Testing CakePHP Applications

  • Our first test case
  • Testing a CakePHP table
  • Testing a CakePHP entity
  • Testing a CakePHP controller
  • Testing a CakePHP behavior
  • Testing a CakePHP component

User Authentication and Authorization

  • Log in and log out a user
  • Authorize a user
  • Using routes to authorize a user

Conclusion

  • Next steps
100,000 Toman