Деталі електронної книги

CakePHP 1.3 Application Development Cookbook. Over 70 great recipes for developing, maintaining, and deploying web applications

CakePHP 1.3 Application Development Cookbook. Over 70 great recipes for developing, maintaining, and deploying web applications

Mariano Iglesias, Cake Software Foundation, Inc.

Eлектронна книга
CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying web applications. While the framework has a lot of documentation and reference guides available for beginners, developing more sophisticated and scalable applications require a deeper knowledge of CakePHP features, a challenge that proves difficult even for well established developers.The recipes in this cookbook will give you instant results and help you to develop web applications, leveraging the CakePHP features that allow you to build robust and complex applications. Following the recipes in this book you will be able to understand and use these features in no time. We start with setting up authentication on a CakePHP application. One of the most important aspects of a CakePHP application: the relationship between models, also known as model bindings. Model binding is an integral part of any application's logic and we can manipulate it to get the data we need and when we need. We will go through a series of recipes that will show us how to change the way bindings are fetched, what bindings and what information from a binding is returned, how to create new bindings, and how to build hierarchical data structures. We also define our custom find types that will extend the three basic ones, allowing our code to be even more readable and also create our own find type, with pagination support. This book also has recipes that cover two aspects of CakePHP models that are fundamental to most applications: validation, and behaviors.
  • CakePHP 1.3 Application Development Cookbook
    • Table of Contents
    • CakePHP 1.3 Application Development Cookbook
    • Credits
    • About the Author
    • About the Reviewers
    • www.PacktPub.com
      • Support files, eBooks, discount offers, and more
        • Why Subscribe?
        • Free Access for Packt account holders
    • Preface
      • What this book covers
      • What you need for this book
      • Who this book is for
      • Conventions
      • Reader feedback
      • Customer support
        • Errata
        • Piracy
        • Questions
    • 1. Authentication
      • Introduction
      • Setting up a basic authentication system
        • Getting ready
        • How to do it...
        • How it works...
          • Hashing a password confirmation field
        • See also
      • Using and configuring the Auth component
        • Getting ready
        • How to do it...
        • How it works...
          • Changing the default user model
        • Theres more...
        • See also
      • Allowing logins with username or e-mail
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Saving the user details after login
        • Getting ready
        • How to do it...
          • How it works...
          • See also
      • Getting the current user's information
        • Getting ready
        • How to do it...
          • How it works...
          • See also
      • Using prefixes for role-based access control
        • Getting ready
        • How to do it...
          • How it works...
          • See also
      • Setting up Access Control Layer-based authentication
        • Getting ready
          • How to do it...
          • How it works...
          • There's more...
          • See also
      • Integrating with OpenID
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also
    • 2. Model Bindings
      • Introduction
      • Adding Containable to all models
        • How to do it...
        • How it works...
        • See also
      • Limiting the bindings returned in a find
        • Getting ready
          • How to do it...
          • How it works...
            • Format of the contain find parameter
            • Reset of binding changes
          • See also
      • Modifying binding parameters for a find
        • Getting ready
          • How to do it...
          • How it works...
          • See also
      • Modifying binding conditions for a find
        • Getting ready
        • How to do it...
        • How it works...
      • Changing the JOIN type of one-to-one associations
        • Getting ready
        • How to do it...
          • How it works...
      • Defining multiple associations to the same model
        • Getting ready
          • How to do it...
          • There's more...
      • Adding bindings on the fly
        • Getting ready
        • How to do it...
        • How it works...
    • 3. Pushing the Search
      • Introduction
      • Performing GROUP and COUNT queries
        • Getting ready
          • How to do it...
          • How it works...
          • See also
      • Using virtual fields
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Building queries with ad-hoc JOINs
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Searching for all items that match search terms
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Implementing a custom find type
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Paginating a custom find type
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Implementing AJAX based pagination
        • Getting ready
        • How to do it...
          • How it works...
    • 4. Validation and Behaviors
      • Introduction
      • Adding multiple validation rules
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Creating a custom validation rule
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Using callbacks in behaviors
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Using behaviors to add new fields for saving
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Using the Sluggable behavior
        • Getting ready
        • How to do it...
        • How it works...
      • Geocoding addresses with the Geocodable behavior
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
    • 5. Datasources
      • Introduction
      • Improving the SQL datasource query log
        • Getting ready
        • How to do it...
        • How it works...
      • Parsing CSV files with a datasource
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
          • Dynamic loading of CSV files
      • Consuming RSS feeds with a datasource
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
          • Changing connection settings at runtime
      • Building a Twitter datasource
        • Getting ready
        • How to do it...
        • How it works...
      • Adding transaction and locking support to the MySQL datasource
        • Getting ready
        • How to do it...
        • How it works...
    • 6. Routing Magic
      • Introduction
      • Using named and GET parameters
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Using routes with prefixes
        • Getting ready
        • How to do it...
          • How it works...
          • See also
      • Working with route elements
        • Getting ready
        • How to do it...
          • How it works...
          • There's more...
            • Using reverse routing
          • See also
      • Adding catch-all routes for profile pages
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Adding validation for catch-all routes
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Creating custom Route classes
        • Getting ready
        • How to do it...
        • How it works...
        • See also
    • 7. Creating and Consuming Web Services
      • Introduction
      • Creating an RSS feed
        • Getting ready
        • How to do it...
        • How it works...
          • Adding view caching to an RSS feed
        • See also
      • Consuming a JSON service
        • How to do it...
        • How it works...
        • See also
      • Building REST services with JSON
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Adding authentication to REST services
        • Getting ready
        • How to do it...
        • How it works...
      • Implementing token-based authorization for API access
        • Getting ready
        • How to do it...
        • How it works...
    • 8. Working with Shells
      • Introduction
      • Building and running a shell
        • Getting ready
        • How to do it...
        • How it works...
          • Using the Auth component for hashing passwords
        • See also
      • Parsing command line parameters
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Creating reusable shell tasks
        • Getting ready
        • How to do it...
        • How it works...
      • Sending e-mails from shells
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Non-interactive tasks with the robot plugin
        • Getting ready
        • How to do it...
        • How it works...
    • 9. Internationalizing Applications
      • Introduction
      • Internationalizing controller and view texts
        • Getting ready
        • How to do it...
        • How it works...
          • Domains and categories
        • See also
      • Internationalizing model validation messages
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Translating strings with dynamic content
        • Getting ready
        • How to do it...
          • How it works...
            • Reordering and reusing interpolation arguments
          • See also
        • Extracting and translating text
          • Getting ready
          • How to do it...
          • How it works...
        • Translating database records with the Translate behavior
          • Getting ready
          • How to do it...
          • How it works...
            • Using separate translation tables
          • See also
      • Setting and remembering the language
        • Getting ready
        • How to do it...
        • How it works...
    • 10. Testing
      • Introduction
      • Setting up the test framework
        • Getting ready
        • How to do it...
        • How it works...
      • Creating fixtures and testing model methods
        • Getting ready
        • How to do it...
          • How it works...
          • There's more...
            • Extending models to avoid testing unneeded bindings
            • Analyzing code coverage
          • See also
      • Testing controller actions and their views
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Using mocks to test controllers
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
      • Running tests from the command line
        • Getting ready
        • How to do it...
        • How it works...
    • 11. Utility Classes and Tools
      • Introduction
      • Working with the Set class
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
      • Manipulating strings with the String class
        • Getting ready
        • How to do it...
        • How it works...
      • Sending an e-mail
        • Getting ready
        • How to do it...
        • How it works...
        • There's more...
        • See also
      • Detecting file types with MagicDb
        • Getting ready
        • How to do it...
        • How it works...
      • Throwing and handling exceptions
        • Getting ready
        • How to do it...
        • How it works...
    • Index
  • Назва: CakePHP 1.3 Application Development Cookbook. Over 70 great recipes for developing, maintaining, and deploying web applications
  • Автор: Mariano Iglesias, Cake Software Foundation, Inc.
  • Оригінальна назва: CakePHP 1.3 Application Development Cookbook. Over 70 great recipes for developing, maintaining, and deploying web applications
  • ISBN: 9781849511933, 9781849511933
  • Дата видання: 2011-03-08
  • Формат: Eлектронна книга
  • Ідентифікатор видання: e_3c7n
  • Видавець: Packt Publishing