PHP framework advanced programming-application of Symfony, CakePHP and Zend

Source: Internet
Author: User
Tags i18n
Although it is relatively easy to learn how to use a single PHP framework to generate dynamic Web pages, it is not easy to determine which of the three mainstream Web application frameworks can best meet your requirements. PHP framework advanced programming-application Symfony,

Recommended editing:

For the first time, compare the three mainstream PHP frameworks without prejudice

Free download of book source code

Basic information
Author: (Poland) Bartosz Porebski Karol Przystalski Leszek Nowak [translator's introduction]
Translator: Fu Yong Jing Li
Press: Tsinghua University Press
ISBN: 9787302279709
Mounting Time:
Published on: February 1, February 2012
Start: 16
Page Number: 503
Version: 1-1

Example:

Http://www.china-pub.com/computers/common/mianfeisd.asp? Id = 59792

Introduction:

Although it is relatively easy to learn how to use a single PHP framework to generate dynamic Web pages, it is not easy to determine which of the three mainstream Web application frameworks can best meet your requirements. PHP framework advanced programming-application Symfony,

CakePHP and Zend compare the three most popular open-source frameworks without prejudice. these three frameworks are Symfony, CakePHP, and ZendFramework. This book discusses in detail the similarities and differences between the three frameworks and provides similar examples and tasks for each framework, so that readers can determine which framework is best suited to themselves.

 

Main content

◆ Provides a very valuable comparison method, compares the advantages and disadvantages of Symfony, CakePHP, and Zend Framework in detail, and introduces how to use each Framework to solve problems.

◆ Describes standard elements used in common tasks, such as forms, emails, searches, security, and templates.

◆ Discuss advanced functions, such as AJAX, plug-ins, Web services, content management services, and internationalization

◆ Demonstrate how to use various testing tools to ensure quality and improve performance

◆ Introduce new frameworks to be released, such as CodeIgniter, Lithium, and Agavi.

 

 

 

Introduction:

 

Bartosz PorebskiIs a video game, Web application, and C ++ software developer. He is also a researcher at Brain-ComputerInterface and a lecturer at the University of agelon in Krakow, Poland.

 

Karol PrzystalskiHe is a software quality engineer at Sabre Holdings and a doctor at the University of agelon in Krakow, Poland. He started using Symfony from its earliest version and wrote a book about the Symfony framework.

 

Leszek NowakWith years of experience in Web development and graphic design using frameworks such as Django, CakePHP, and CodeIgniter, he is also engaged in 3D modeling, animation, image recognition, and AI development. He often said, "If science is used in games, it will be interesting.

Contents


 
Chapter 2 Symfony, CakePHP, and Zend
Framework introduction 1
1.1 Web application framework definition and
Usage 1
1.1.1 framework and Database 2
1.1.2 time to use the framework 3
1.1.3 PHP and other programming languages 4
1.2 Open Source PHP Web framework 5
1.2.1 Comparison of public interest Frameworks 5
1.2.2 3 frameworks Overview 7
1.2.3 Other frameworks 9
1.3 Design pattern in Web framework 13
1.3.1 definition of design patterns 13
1.3.2 Model-View-Controller
Structure Design mode 14
1.3.3 overview of other design modes 15
Chapter 2 framework entry 27
2.1 configuration requirements 27
2.1.1 XAMPP 28
2.1.2 Apache 31
2.1.3 database 32
2.1.4 PEAR 33
2.1.5 Subversion (SVN) 34
2.1.6 Installation Overview 34
2.2 install 35
2.2.1 Symfony 35
2.2.2 CakePHP 37
2.2.3 Zend Framework 38
2.3 configure 39
2.3.1 Symfony 39
2.3.2 CakePHP 39
2.3.3 Zend Framework 40
2.4 Hello World application 40
2.4.1 Symfony 40
2.4.2 CakePHP 42
2.4.3 Zend Framework 43
2.5 Structure 45
2.5.1 Symfony 45
2.5.2 CakePHP 47
2.5.3 Zend Framework 48
2.6 IDE support 49
2.6.1 NetBeans 50
2.6.2 Eclipse 50
2.6.3 Zend Studio 51
Chapter 1 database use 53
3.1 object link ing 53
3.1.1 object link impedance mismatching 54
3.1.2 Propel 56
3.1.3 Doctrine 56
3.1.4 CakePHP ORM 57
3.1.5 Zend_Db 57
3.1.6 Other ORM solutions 59
3.2 database configuration 59
3.2.1 Open Database interconnection (ODBC) 60
3.2.2 SQLite 60
3.2.3 PostgreSQL 62
3.2.4 MySQL 63
3.2.5 Microsoft SQL Server 65
3.2.6 Oracle 68
3.2.7 DB2 69
3.3 communicate with the database 70
3.3.1 mode 71
3.3.2 firmware 76
3.3.3 Command line interface 80
Chapter 1 first of the three frameworks used
Application 85
4.1 Design 85
4.2 Symfony 87
4.2.1 Project 87
4.2.2 Model 88
4.2.3 controller 88
4.2.4 view 91
4.3 CakePHP 96
4.3.1 project 96
4.3.2 model 97
4.3.3 controller 98
4.3.4 views 100
4.4 Zend Framework 105
4.4.1 Project 105
4.4.2 model 106
4.4.3 control 113
4.4.4 view 118
Chapter 2 forms 5th
5.1 field verification 125
5.1.1 process of form verification 126
5.1.2 Symfony 128
5.1.3 CakePHP 133
5.1.4 Zend Framework 136
5.2 custom form 138
5.2.1 Symfony 139
5.2.2 CakePHP 149.
5.2.3 Zend Framework 154
5.3 use Captcha to prevent spam reception
Email 163
5.3.1 question 163
5.3.2 solution 165
Chapter 4 email 6th
6.1 create a mail application 175
6.1.1 email sending method and Web
Server 176
6.1.2 configure PHP 176
6.1.3 SMTP server configuration 177
6.2 SwiftMailer 178
6.2.1 Symfony 178
6.2.2 cake PHP 184
6.2.3 Zend Framework 187
6.3 CakePHP mail component 189
6.3.1 send a simple email 190
6.3.2 send HTML email 191
6.3.3 Add an attachment 191
6.3.4 CC 192
6.3.5 remote SMTP server 192
6.3.6 secure connection 192
6.3.7 summary 193
6.4 Zend email program 194
6.4.1 send simple email 194
6.4.2 send HTML email 194
6.4.3 add an attachment 195
6.4.4 copy 195
6.4.5 remote SMTP server 196
6.4.6 secure connection 196
6.4.7 conclusion 197:
6.5 PHPMailer 197
6.5.1 Symfony 198
6.5.2 CakePHP 198
6.5.3 Zend Framework 199
Chapter 4 search 7th
7.1 question 203
7.1.1 full text search 204
7.1.2 index 204
7.1.3 search and query 205
7.2 solution 206
7.2.1 sph0000206
7.2.2 Lucene 213.
7.2.3 Google Custom Search 218
Chapter 2 security 8th
8.1 set secure connection 221
8.1.1 question 222
8.1.2 configure Web server 223
8.1.3 Symfony 226
8.1.4 CakePHP 228.
8.1.5 Zend Framework 228
8.2 protect the configuration file form from XSS
And inject attacks 229
8.2.1 problem 229
8.2.2 solution 231
8.3 CSRF 234
8.3.1 issue 234
8.3.2 solution 235
Chapter 4 template 9th
9.1 create with helper classes and Lightbox
Simple image library 239
9.1.1 presentation layer helper 241
9.1.2 Lightbox 242
9.1.3 Symfony 242
9.1.4 CakePHP 245.
9.1.5 Zend Framework 247
9.2 use templates in the Web framework
Engine 249
9.2.1 Smarty 250
9.2.2 dwoos 255
9.2.3 Twig 258
9.3 overview of other add-on template engines 260
9.3.1 Template Blocks 260
9.3.2 Open Power Template
(OPT) 261
9.3.3 TinyButStrong 262
9.3.4 Rain TPL 264
9.3.5 Savant 265
Chapter 2 AJAX 10th
10.1 AJAX introduction 270
10.2 automatic completion 272
10.2.1 Symfony 272
10.2.2 cake PHP 274
10.2.3 Zend Framework 277
10.3 dynamic pop-up window 283
10.3.1 Symfony 283
10.3.2 CakePHP 288
10.3.3 Zend Framework 291
10.4 chat with AJAX users 293
10.4.1 Symfony 294
10.4.2 CakePHP 297.
10.4.3 Zend Framework 300
Chapter 4 Create a plug-in 11th
11.1 Symfony 305
11.1.1 plugin structure 306
11.1.2 development plug-in 306
11.1.3 test plug-in 308
11.2 CakePHP 309
11.2.1 plug-in 309
11.2.2 development plug-in 310
11.2.3 test plug-in 312
11.3 Zend Framework 313
Chapter 2 Web services 12th
12.1 REST-style news reading 315
12.1.1 working principle of REST 316
12.1.2 Symfony 317
12.1.3. CakePHP 320
12.1.4 Zend Framework 323
12.2 in e-commerce applications
Application SOAP Web service 329
12.2.1 install SOAP for PHP
Expansion 330
12.2.2 test with soapUI 330
12.2.3
Different 330
12.2.4 Symfony 331
12.2.5 CakePHP 337
12.2.6 Zend Framework 340
Chapter 2 backend 13th
13.1 Symfony 343
13.1.1 Doctrine management module 344
13.1.2 apostrophp 346
13.1.3 Diem 347
13.2 CakePHP 349
13.2.1 Croogo 349.
13.2.2 Wildflower 351
13.3 Zend Framework 352
13.3.tomatocms 352
13.3.2 Pimcore 352
13.3.3 Digitalus CMS 354.
13.4 function summary 355
Chapter 2 internationalization 14th
14.1 International definition 357
14.2 Symfony 358
14.2.1 set 358
14.2.2 template 359
14.2.3 form 363
14.2.4 for i18n database 364
14.2.5 add-on 365
14.3 CakePHP 366
14.3.1 configure 366.
14.3.2 Template 367
14.3.3 form 369
14.3.4 for i18n database 370
14.3.5 add-on 374
14.4 Zend Framework 374
14.4.1 configure 374
14.4.2 conversion 376
14.4.3 form 376
14.4.4 for i18n database 378
14.4.5 add-on 378
Chapter 1 test 15th
15.1 test overview 379
15.1.1 how to test 380
15.1.2 test cases, test suites, and
Test coverage rate: 380
15.1.3 testing Type 381
15.1.4 when to end Test 384
15.1.5 bug is our friend 385
15.1.6 firmware 387
15.1.7 counterfeit product 387
15.1.8 test-driven development 388
15.1.9 test framework 389
15.2 use function testing for black box
Registration Form test 391
15.2.1 problem 392
15.2.2 solution 392
15.3 use Selenium to implement CMS
Test automation 397
15.3.1 install Selenium IDE 397
15.3.2 install Selenium Remote
Management 398
15.3.3 question 399
15.3.4 solution 400
15.4 mail unit test 407
15.4.1 question 407
15.4.2 solution 409
Chapter 4 user management 16th
16.1 basic user management 415
16.1.1 RBAC and ACL 415
16.1.2 Symfony 417
16.1.3 CakePHP 426
16.1.4 Zend Framework 431
16.2 use LDAP to determine users 435
16.2.1 demand 435
16.2.2 principle of LDAP operation 437
16.2.3 prepare LDAP 437
16.2.4 configure LDAP 438
16.2.5 solution 451
Chapter 2 performance 17th
17.1 use JMeter for stress testing,
Load testing and performance testing 459
17.2 benchmark test 463
17.2.1 Hello World 463
17.2.2 simple CRUD application 464
17.3 development speed 464
Chapter 2 summary 18th
18.1 features 465
18.1.1 Symfony 465
18.1.2 cake PHP 467
18.1.3 Zend Framework 467
18.1.4 menu 468
18.2 The winner is... 469
Appendix A Web resources 471
Appendix B CodeIgniter, Lithium, and Agavi
Sample code 477
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.