Free CakePHP Book

Download

Right Here

About

Super Awesome Advanced CakePHP Tips is free e-book about the CakePHP Framework. It covers topics that are generally missed in the beginner books that are on the market. You can read more in the announcement blog post.

Contents

  • Who Should Read This Book
    • How to Read This Book
  • How to Learn CakePHP
    • The Paid Way
    • The Free Way
    • After you’ve done Either/Both Of The Above
  • Models
    • Recursion
    • Containable Behavior
    • Why You Should Use It
    • This Will Catch Everyone At Least Once
  • Custom Find Types
    • The Unofficial Cake Way
    • My Way
    • Comparison
    • App Model
  • Getting the Logged In User from Anywhere
    • The User Model
    • In The AppController
    • Back to the User Model
    • Usage
    • What About The Configure Class?
    • Full Source
  • Automatically Tracking Created/Modified By
    • Database
    • Model Relations
    • Model BeforeSave Callback
    • Behavior BeforeSave Callback
    • The Full Behavior
  • Routing
    • Case Insensitive
  • Unit Testing
    • Views
      • Setting Up The Files
      • Setting Up The Test Class
      • Standard Index View
      • Creating The View Test
      • Testing the Rendered View
    • Controllers
      • Doing Things the Hard Way
      • Testing A Controller Method
      • Making assertions
    • Mock Objects
      • What is a Mock Object
      • Where can I get one of these fabulous devices?
      • Makings expectations with Mock Objects
    • Models
      • Test Case
      • Fixtures
    • Merging Add and Edit Actions
      • The Controller
      • The View
    • Cake Tricks from The Core
      • Cake Style $options Parameter
      • Handling Data Arrays with a Single Record or an Array of Records
    • Stupid Easy URL Slugs
    • jQuery
      • Replacing $javascript->event()
      • Replacing $ajax->link()
    • Expanding Trees With jQuery
      • Basic Tree
      • TreeHelper
      • TreeHelper With jQuery
      • Cleaning Up the Images
    • JavaScript In Views
    • Make Your Cake App Fast
      • Don't Use $uses Unless You Really, Absolutely Have To
      • Model Chains
      • Controller::loadModel and ClassRegistry::init.
      • Use Containable
      • Set Debug to 0
      • Cache your slow queries/web service requests/whatever
      • View Caching
      • HTML Caching
      • APC (or some other opcode cache)
      • Persistent Models
      • Store The Persistent Cache in APC
      • Speed Up Reverse Routing
      • Unchain Your Models
    • The Giant Configuration, Version Control and Deployment Section
      • Version Control
        • core.php
        • bootstrap.php
        • database.php
      • Multiple Environments
      • Deployment
        • Debug
        • Cache
      • Alternate Methods
    • CakePHP Reserved Classes
    • From The Bakery (And Other Places)
      • Behaviors
        • Sluggable
        • Soft Deletable
        • Linkable
      • Plugins
        • DebugKit
        • NamedScope
      • Helpers
        • Asset
        • Jquery Validation
        • HtmlCache
    • Copyright
    • Revisions
Posted in Uncategorized