Book Image

Symfony 1.3 Web Application Development

Book Image

Symfony 1.3 Web Application Development

Overview of this book

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.
Table of Contents (15 chapters)
Symfony 1.3 Web Application Development
Credits
About the Authors
About the Reviewer
Preface

Customizing the layout


The only thing left to do for the layout is to add the navigation and style it a little. Therefore, open apps/backend/templates/layout.php.

We'll add the following to produce the navigation:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<?php include_http_metas() ?>
<?php include_metas() ?>
<?php include_title() ?>
<link rel="shortcut icon" href="/favicon.ico" />
<style type="text/css">
#top_menu {
padding: 10px 0;
}
#top_menu a {
font-family: arial, helvetica, clean, sans-serif;
text-decoration: none;
font-size: 14px;
}
#top_menu a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div id="top_menu">
<?php echo link_to('Store Locations', '@store_location') ?> |
<?php echo link_to('Vacancies', '@vacancy') ?>
</div>
...