万本电子书0元读

万本电子书0元读

顶部广告

CakePHP 1.3 Application Development Cookbook电子书

售       价:¥

1人正在读 | 0人评论 9.8

作       者:Mariano Iglesias

出  版  社:Packt Publishing

出版时间:2011-03-08

字       数:217.9万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Written in cookbook style, this book offers learning and techniques through recipes. It contains step-by-step instructions for CakePHP developers to create unique web applications. The book is designed in such a way that you can refer to things chapter by chapter, and read them in no particular order.If you are a CakePHP developer who wants to discover quick and easy ways to improve web applications, and to leverage all aspects of the framework, this book is for you. This book assumes that you already have knowledge of CakePHP, and general PHP development skills.
目录展开

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

There's 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

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部