Instant CakePHP Starter [Instant]


This title is available as an eBook only
Instant CakePHP Starter [Instant]
eBook: $12.99
Formats: PDF, PacktLib, ePub and Mobi formats
$11.04
save 15%!
Print & eBook also available on:
Learn in an Instant - Short, Fast, Focused
Overview
Table of Contents
Author
Support
Sample Chapters
  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results.
  • Focus on an iterative practical approach to learn the myriad features of CakePHP
  • Learn about Models, Views, and Controllers as well as scaffolding, themes, behaviors, and routing
  • Scaffold and generate your application code using the command-line “bake” tool almost exclusively

Book Details

Language : English
eBook : 76 pages
Release Date : April 2013
ISBN : 1782162607
ISBN 13 : 9781782162605
Author(s) : Mark Robert Henderson
Topics and Technologies : All Books, Instant, Web Development, Open Source, PHP

Table of Contents

Instant CakePHP Starter
  • Instant CakePHP Starter
    • So, what is CakePHP?
      • CakePHP – the short story
      • Why CakePHP – making the short story long
      • CakePHP to the rescue!
      • Model-View-Controller – what is that all about?
    • Installation
      • Step 1 – preparing the development environment
        • The HTTP server (Apache)
        • The database layer (MySQL)
        • PHP
        • Source control
      • Step 2 – getting and installing the CakePHP application
        • Base install
        • Cleaning up the errors on the home page
      • Step 3 – setting up the production deployment
        • Binding your MySQL database to your application
        • Changing the file for deployment
        • Downloading the af command-line tool
        • Pushing your code
      • And that's it!
    • Quickstart – building a web application
      • Step 1 – architecture
        • The models
        • The controllers
        • The views
      • Step 2 – scaffolding with the command-line tool
        • Creating the schema definition
        • Creating the database schema
        • Creating the models
        • Creating the controllers
        • Creating the views
      • Step 3 – taking a look at our scaffolded app
      • Step 4 – what else does "bake" do for us?
        • API documentation
        • Internationalization, or i18n
        • Generating .pot files
      • Step 5 – deploying to production
        • Pushing the code
        • Updating the database
      • Step 6 – congratulations!
    • Top 6 features you'll want to know about
      • What do we know at this point?
      • Routing – naming matters!
        • A bit more detail
      • Views and themes
        • Views summary
        • Views – a quick overview
        • Installing the Cakestarter-Bootstrap theme
      • Better URLs
        • Altering the schema
        • Installing the sluggable behavior
        • Making your controllers aware of the slugs
        • Updating the views
      • Adding the Install page
        • Using the built-in PagesController
      • Creating a JSON service for the JavaScript to consume
      • Fixtures and automated tests
        • What is automated testing?
        • The initial setup
    • People and places you should get to know
      • The Bakery
      • Getting support from the community
        • IRC (Internet Relay Chat) channels
        • The Google group, Google Plus page, and CakePHP questions
      • CakePHP on social media
        • Twitter
        • Facebook
      • Conventions and meetups
        • CakeFest
        • Meetups
      • Parting words
      • About Packt Publishing
      • Writing for Packt

Mark Robert Henderson

Mark Robert Henderson has been understanding, developing, modifying, and deploying PHP applications since 2006, and while he has been through several love affairs with different technologies over the years, he tries to remain as unopinionated as possible about specific technologies, mostly to avoid arguments with other developers.

However, sometimes a technology comes along that just makes an engineer smile at its simplicity and elegance. CakePHP is one of those, and Mark is happy to share some of the cool things that he's learned in the course of creating applications with it.

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


Errata

- 3 submitted: last submission 16 Jul 2013

Errata type: Typo | Page no: 17

The categories will contain the following information:

should be 

Tags will contain the following information:

 

Errata type: Typo | Page no: 17

This is a unique identifier for categories,

should be

This is a unique identifier for tags,

 

Errata type: Code | Page no: 44

In step 2, app/Views/Themed should be

app/View/Themed

Please create the Themed directory if it doesn't exist

Sorry, there are currently no downloads available for this title.

Frequently bought together

Instant CakePHP Starter [Instant] +    PHP 5 Social Networking =
50% Off
the second eBook
Price for both: £18.44

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Install the development version of CakePHP
  • Deploy the development code to a live production server, using AppFog
  • Use the command line “bake” tool to auto-generate Models, Views, and Controllers
  • Set up a JSON service for JavaScript and other clients to consume
  • Define your database schema in code and use the “cake” command line tool to generate and execute the SQL automatically
  • Create and update themes, which are pluggable versions of the Views you know and love

In Detail

CakePHP is an exciting tool focused on writing web applications in PHP in a simple and fast way that requires less code. You can rapidly build prototypes using code generation and scaffolding. It doesn't require any complicated XML or YAML files. You just need to set up your database and you're ready to bake!

Instant CakePHP Starter contains several tutorials that together build a powerful and engaging application, and in the process teaches you many features of CakePHP, both common and obscure. It is not simply a listing and explanation of features you could get from reading the online documentation. This book is an exploration of the experience of installing, building, and deploying a CakePHP application in a step by step way.

This book begins by installing CakePHP locally, and then deploying your application to production.

We move on by scaffolding our application using the wonderful command-line tool that is packaged with CakePHP, bake. With our code generated for us, we install a theme to instantly update the look of the app, iterating over it a few times to add URLs, an installable JavaScript component, and a JSON service.

We conclude with a discussion of the community. In short, Instant CakePHP Starter is a kick start to your experience with both CakePHP and its community.

Approach

Get to grips with a new technology, understand what it is and what it can do for you, and then get to work with the most important features and tasks.This book is a practical, step-by-step tutorial that teaches you about Models, Views, Controllers, scaffolding, themes, behaviors, and routing in CakePHP.

Who this book is for

This book is for those who have experience in writing HTML/CSS, and a little bit of JavaScript and PHP, and want to learn the basics of CakePHP in an engaging manner.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software