Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Symfony 1.3 Web Application Development
Symfony 1.3 Web Application Development

Symfony 1.3 Web Application Development: Design, develop, and deploy feature-rich, high-performance PHP web applications using the Symfony framework

eBook
S$9.99 S$47.99
Paperback
S$59.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Symfony 1.3 Web Application Development

Chapter 2. Developing Our Application

Developing an application in Symfony is easy and time-saving, and one of the best ways to demonstrate that is to create a web site. In this chapter, we begin our journey by jumping straight into development. By the end of this chapter, we will have an initial prototype, which will serve as a starting point for the other chapters.

Along the way you will be introduced to the MVC flow within Symfony where you will understand about the business and application logic, and designing the database.

In this chapter you will learn how to:

  • Set up the foundations for a basic database-driven web site using the Symfony framework

  • Use some of the available Symfony tasks to cut out repetition

  • Create a database schema and later understand its relation to the ORM and forms

  • Understand the flow of the request to the controller, action, routing, and template rendering

The milkshake shop

Our application will be designed for a fictitious milkshake shop. The functional requirements...

The milkshake shop


Our application will be designed for a fictitious milkshake shop. The functional requirements for our shop are:

  • Display of the menu, job vacancies, and locations; these details will be updated from the back office

  • Sign up to a newsletter, where users can submit their details

  • Search facility for the menu

  • Secure backend for staff to update the site

  • The site must be responsive

  • Option for the users to view our vacancies in three languages

Creating the skeleton folder structure

Symfony has many ways in which it can help the developer create applications with less efforts—one way is by using the Symfony tasks available on the Command Line Interface (CLI). We will be using this method extensively in this book. These Symfony tasks do the following:

  • Generate the folder structure for your project, modules, applications, and tasks

  • Clear the generated cache and rotate log files

  • Create controllers to enable and disable an application and set permissions

  • Interact with the ORM layer to build...

Summary


By using Symfony's CLI to create a project, a developer can spend more time coding. Also, the initial overview of the controllers, routing, application logic, applications, and modules show how tight and modular Symfony can be to develop with. This enforces that developers adhere to standards that make refactoring, debugging, and extending others' code easy. Also, it helps developers to code in an agile way.

We have so far covered the basics that have allowed us to get a wireframe version of our milkshake application up and ready. We have used some of the Symfony tasks to generate the majority of files and code, and have added a few little tweaks to get the pages linking and working. Also, we have configured the framework to use the Propel plugin and have the database ready for the next chapter.

Left arrow icon Right arrow icon

Key benefits

  • Create powerful web applications by leveraging the power of this Model-View-Controller-based framework
  • Covers all the new features of version 1.3 ñ many exciting plug-ins for you
  • Learn by doing without getting into too much theoretical detail ñ create a "real-life" milkshake store application
  • Includes best practices to shorten your development time and improve performance

Description

With its flexible architecture, the Symfony framework allows you to build modern web applications and web services easily and rapidly. The MVC components separate the logic from the user interface and therefore make developing, changing, and testing your applications much faster. Using Symfony you can minimize repetitive coding tasks, optimize performance, and easily integrate with other libraries and frameworks. Although this framework contains with many powerful features, most developers do not exploit Symfony to its full potential. This book makes it easy to get started and produce a powerful and professional-looking web site utilizing the many features of Symfony. Taking you through a real-life application, it covers all major Symfony framework features without pushing you into too much theoretical detail, as well as throwing some light on the best practices for rapid application development. This book takes you through detailed examples as well as covering the foundations that you will need to get the most out of the Symfony framework. You will learn to shorten the development time of your complex applications and maintain them with ease. You will create several useful plug-ins and add them to your application and automate common tasks. The book also covers best practices and discussions on security and optimization. You will learn to utilize all major features of this framework by implementing them in your application. By the end, you should have a good understanding of the development features of Symfony (for Propel as well as Doctrine editions), and be able to deploy a high-performance web site quite easily.

Who is this book for?

This book is for PHP web developers who want to get started with Symfony 1.3. If you are already using Symfony 1.0 or are new to Symfony, you will learn how to use it in the best way to produce better applications faster.Basic knowledge of Object Oriented design and ORM will be quite helpful.

What you will learn

  • Set up the foundations for a database-driven web site using Symfony
  • Create a list of products by accessing data from a database, paginate the menu, and then customize its look
  • Create formsófrom simple contact forms to complex onesówith user-defined fields using sfFormExtraPlugin
  • Send email notifications to the customers using PHP SwiftMailer library
  • Create quick development task plug-ins to save your development time and package them into your application
  • Configure and customize Symfony s admin generator to create a nice looking back-office
  • Secure your backend application with the Symfony authentication mechanism, leveraging the power of the sfGuardPlug-in security and authentication plug-in
  • Create an advanced admin panel with JavaScript that allows image files to be uploaded and thumbnails to be automatically generated
  • Enhance your search mechanism by using the JQueryAutoComplete Widget to add an auto-complete feature to it
  • Allow your users to choose their preferred language for display by introducing internationalization and localization to your application
  • Integrate a component from another framework into your application with minimum effort
  • Optimize the response time of your site by using compression and caching

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Sep 21, 2009
Length: 228 pages
Edition : 1st
Language : English
ISBN-13 : 9781847194572
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Sep 21, 2009
Length: 228 pages
Edition : 1st
Language : English
ISBN-13 : 9781847194572
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just S$6 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just S$6 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total S$ 104.98
Symfony2 Essentials
S$44.99
Symfony 1.3 Web Application Development
S$59.99
Total S$ 104.98 Stars icon

Table of Contents

10 Chapters
Getting Started with Symfony Chevron down icon Chevron up icon
Developing Our Application Chevron down icon Chevron up icon
Adding the Business Logic and Complex Application Logic Chevron down icon Chevron up icon
User Interaction and Email Automation Chevron down icon Chevron up icon
Generating the Admin Area Chevron down icon Chevron up icon
Advanced Forms and JavaScript Chevron down icon Chevron up icon
Internationalizing our Global Positions Chevron down icon Chevron up icon
Extending Symfony Chevron down icon Chevron up icon
Optimizing for Performance Chevron down icon Chevron up icon
Final Tweaks and Deployment Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
(1 Ratings)
5 star 0%
4 star 0%
3 star 100%
2 star 0%
1 star 0%
James Herrmann Dec 01, 2009
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
I purchased this book around the beginning of November. Construction and print quality are both very good. From a writing standpoint, the book is easy to read and conversational. There are some typos (I've found around 10) but none of them are in code samples which is important. I'll be submitting these back to the publisher so later versions are corrected.For those learning Symfony, this book is a mixed bag. Beginning with the positives, you will learn the basic approach to developing in Symfony. Areas I particularly liked include instruction on project setup (chap1&2), forms (chap4) and optimization (chap9).On the downside, Propel is the ORM that is referenced throughout this text. There are virtually no code samples in regard to Doctrine. This is particularly egregious because Doctrine is the default ORM library for Symfony as of version 1.3. As Fabien Potencier (creator of Symfony) puts it, "As Doctrine is the future of symfony, we decided to make it the default choice when creating a new project". Don't assume the book contains code samples for both. It doesn't.Like myself, you may find yourself using the Symfony website/forums A LOT to get additional information on topics. This is because the book is somewhat light on details. I would liken it much more in-line with the Visual QuickStart books that Peachpit produces. The idea being, get something up-and-running quickly.The book does not cover Unit and Functional testing using the lime Testing Framework; a built-in library. This is a significant omission. Automated testing is an integral component of today's RAD programming frameworks (ala Rails).As for Symfony 1.3 specific information, they do a pretty good job. For instance, the use of csrf_secret for securing forms is discussed. However, 1.3 offers easy ways to use Swiftmailer to send emails. This is not covered. The old pattern is used.If you are going to use Propel and are a Symfony beginner, you'll be in good shape with this book. Otherwise, I'd say wait for 'Practical symfony 1.4 for Doctrine' or use the website's tutorials. The Symfony framework itself is a wonderful product. I've enjoyed using it immensely.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.

Modal Close icon
Modal Close icon