Tecnologías

Páginas: 32 (7873 palabras) Publicado: 3 de diciembre de 2012
CakePHP Cookbook Documentation
Release 2.x

Cake Software Foundation

November 07, 2012

Contents

1 Getting Started 2 Blog Tutorial Getting Cake . . . . . . . . Creating the Blog Database . Cake Database Configuration Optional Configuration . . . A Note on mod_rewrite . . .

1 3 3 4 5 5 6 9 9 9 10 13 14 15 17 18 19 19 29 29 29 30 30 30 30 31 32 i

. . . . .

. . . . .

. . . . .. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . .. .

. . . . .

. . . . .

. . . . .

3 Blog Tutorial - Adding a layer Create a Post Model . . . . . . . Create a Posts Controller . . . . Creating Post Views . . . . . . . Adding Posts . . . . . . . . . . Data Validation . . . . . . . . . Editing Posts . . . . . . . . . . Deleting Posts . . . . . . . . . . Routes . . . . . . . . . . . . . . Conclusion . . . . . . . . . . . AdditionalReading . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . .. . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .

. . . . . . . . . .. . . . . . . . . .

4 Installation Requirements . . . . . . . . . . . . . . . . . . . . . . License . . . . . . . . . . . . . . . . . . . . . . . . . Downloading CakePHP . . . . . . . . . . . . . . . . . Permissions . . . . . . . . . . . . . . . . . . . . . . . Setup . . . . . . . . . . . . . . . . . . . . . . . . . . Development . . . . . . . . . . . . . . . . . . . . . . Production . . . .. . . . . . . . . . . . . . . . . . . . Advanced Installation and server specific configuration

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

. . . . . . . .

Fire It Up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 5 CakePHP Overview 39 What is CakePHP? Why Use it? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 UnderstandingModel-View-Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Where to Get Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 6 Controllers The App Controller . . . . . Request parameters . . . . . Controller actions . . . . . . Request Life-cycle callbacks Controller Methods . . . . . Controller Attributes . . . . More on controllers . . . . . 7Views View Templates . Using view blocks Layouts . . . . . Elements . . . . . View API . . . . More about Views 45 45 46 46 47 48 55 57 77 77 79 81 83 86 88

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

....
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Tecnologia
  • Tecnología
  • Tecnologia
  • Tecnologia
  • Tecnologia
  • Tecnologia
  • Tecnologia
  • Tecnologia

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS