Nicht aus der Schweiz? Besuchen Sie lehmanns.de

Beginning CakePHP (eBook)

From Novice to Professional

(Autor)

eBook Download: PDF
2008 | 1st ed.
XX, 344 Seiten
Apress (Verlag)
978-1-4302-0978-2 (ISBN)

Lese- und Medienproben

Beginning CakePHP - David Golding
Systemvoraussetzungen
39,58 inkl. MwSt
(CHF 38,65)
Der eBook-Verkauf erfolgt durch die Lehmanns Media GmbH (Berlin) zum Preis in Euro inkl. MwSt.
  • Download sofort lieferbar
  • Zahlungsarten anzeigen

CakePHP is a leading PHP–based web app development framework. When asking a question on forums or chat rooms, many CakePHP beginners get little help from the experts. Simple questions can get a response like, “Well, just read the online manual and API.” Unfortunately, the online manual is depreciated, and who wants to absorb a programming language or framework from an API? Beginning CakePHP will do the following:

  • Lead you from a basic setup of CakePHP to building a couple applications that will highlight CakePHP’s functionality and capabilities without delving too deeply into the PHP language, but rather what the CakePHP framework can offer the developer.
  • Teach you to use CakePHP by incorporating advanced features into your web development projects.
  • Target beginners of CakePHP or web frameworks in general as well as experienced developers with limited exposure to CakePHP. A secondary audience may include developers undecided on adopting CakePHP or business managers trying to assess the value of incorporating CakePHP into their toolbox.


David Golding is author of best selling CakePHP book, Beginning CakePHP, as well as a long time web developer, PHP programmer.
CakePHP is a leading PHP–based web app development framework. When asking a question on forums or chat rooms, many CakePHP beginners get little help from the experts. Simple questions can get a response like, “Well, just read the online manual and API.” Unfortunately, the online manual is depreciated, and who wants to absorb a programming language or framework from an API? Beginning CakePHP will do the following: Lead you from a basic setup of CakePHP to building a couple applications that will highlight CakePHP’s functionality and capabilities without delving too deeply into the PHP language, but rather what the CakePHP framework can offer the developer. Teach you to use CakePHP by incorporating advanced features into your web development projects. Target beginners of CakePHP or web frameworks in general as well as experienced developers with limited exposure to CakePHP. A secondary audience may include developers undecided on adopting CakePHP or business managers trying to assess the value of incorporating CakePHP into their toolbox.

David Golding is author of best selling CakePHP book, Beginning CakePHP, as well as a long time web developer, PHP programmer.

Contents at a Glance 5
Contents 7
About the Author 16
About the Technical Reviewer 17
Acknowledgments 18
Introduction 19
From Novice to Professional 20
Why Cake? 20
Summary 24
Getting Started 25
Installing and Running CakePHP 26
A Simple Start: Running Cake on a Localhost Environment 26
Running the Setup Routines 30
Summary 33
Creating a To-Do List Application 34
Exploring the MVC Structure 34
Designing and Creating the Database 36
Creating Models 37
Creating Controllers 38
Launching the Application 39
Creating the Scaffolding 40
Summary 42
Developing CakePHP Applications 43
Naming Files and Designing the Database 44
Convention Over Configuration 44
MVC Default Behaviors 45
Naming Conventions 46
Poorly Designed Databases 54
Table Associations 55
Beyond the Scaffold 67
Summary 68
Creating Simple Views and Baking in the Console 69
Introducing Layouts 69
Creating Individual Views 73
Using Bake to Create Views 75
Editing Baked Views 82
Using Commands for Faster Baking 84
Customizing Views 84
Summary 85
Customizing Views 86
Handling User Interactions 86
Writing Individual View Files 93
Using Other Helpers 99
Summary 100
Working with Controllers and Models 101
Building an Extensive Blog 101
Working with Actions 102
Customizing the Controller for the Blog 104
Creating a Model for the Blog 112
Writing Custom Model Functions 118
Trimming Results 121
Summary 123
Implementing Ajax Features 124
How Ajax Works 124
Preparing the Ajax Helper 127
Adding Comments to the Blog 128
Working Ajax into the View 129
Working Ajax into the Controller 132
Using Other Ajax Helper Functions 134
Doing More with the Ajax Helper 140
Uploading Files with jQuery 142
More Ajax Features 145
Summary 145
Advanced CakePHP 146
Helpers 147
Installing Helpers 147
Using Cake’s Built- in Helpers 148
Using Other Built- in Helpers 167
Creating Custom Helpers 172
Customizing Helper Variables 181
Summary 183
Routes 184
The Basic Route 184
Arguments 185
Reverse Routing 186
Admin Routing 187
Route Parameters 189
Parsing Files with Extensions Other Than . php 191
Summary 194
Components and Utilities 195
Why Use Components? 195
Using Built- in Components 196
Utility Classes 206
Third- Party Components 212
Creating Custom Components 213
Summary 214
Vendors 215
Using Vendors 215
Making No Assumptions for Third- Party Scripts 217
Installing a Third- Party Script 218
Using Other Frameworks with CakePHP 219
Summary 225
Plugins 226
Installing a Third- Party Plugin 226
Creating Custom Plugins 228
The Calendar Plugin 231
Summary 247
DataSources and Behaviors 248
Extending the Model with DataSources and Behaviors 250
Working with DataSources 250
Working with Behaviors 261
Summary 277
Wrapping Up the Application 279
Designing the Home Page 279
Generating Dynamic Navigation 281
Customizing the Overall Design 282
Debugging the Application 282
Running the Application on a Remote Host 283
Summary 284
Appendixes 285
Installation Issues 286
Developing in a Localhost Environment 286
Setting Up a Localhost 287
Running MySQL 291
How CakePHP Compares with Other Frameworks 293
PHP Frameworks 293
Using the Various Frameworks 294
Index 298

Erscheint lt. Verlag 2.9.2008
Zusatzinfo XX, 344 p.
Verlagsort Berkeley
Sprache englisch
Themenwelt Mathematik / Informatik Informatik Web / Internet
Schlagworte AJAX • CAKE • Forum • Framework • PHP • techniques • Web Development
ISBN-10 1-4302-0978-X / 143020978X
ISBN-13 978-1-4302-0978-2 / 9781430209782
Haben Sie eine Frage zum Produkt?
PDFPDF (Wasserzeichen)
Größe: 2,5 MB

DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasser­zeichen und ist damit für Sie persona­lisiert. Bei einer missbräuch­lichen Weiter­gabe des eBooks an Dritte ist eine Rück­ver­folgung an die Quelle möglich.

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schränkt geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.

Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Das Handbuch für Ausbildung und Beruf

von Vivian Pein

eBook Download (2024)
Rheinwerk Computing (Verlag)
CHF 29,20