After developing an application in Symfony 1.3, the next aspect we will cover is creation of forms. Symfony incorporates a subframework that handles forms, which once mastered, makes creating forms an enjoyable task. In this two-part article by Tim Bowler, we are going to see how easy it is to create and validate forms by creating a newsletter signup module for our web site. We will then convert our new module into a plugin so that we can use it with other projects.
By the end of this article you will know how to:
- Add a third-party library to send automated emails
- Create and modify Propel-based forms
- Use flash variables
- Create a plugin and package it up for redistribution
This article demonstrates how we can secure extensions and explains some of the ramifications if we fail to do this.
This two-part article by James Kennard contains the following recipes:
- Writing SQL safe queries
- Writing SQL-safe LIKE string comparison queries
- Using the token
- Making a filename safe
- Making a directory path safe
- Making a path safe
- Safely retrieving request data
- Getting a value from an array
In this article by Ahsanul Bari and Anupom Syam, we will learn some of the important aspects of CakePHP. We will learn how we can create an application that we call the CakeTooDoo. It can manage to-do lists, list all the tasks, add tasks, edit tasks, and delete tasks.
This article will show how we can create a database that follows the Cake convention, and how to configure Cake to use it. It will also discuss how to create models, controllers, views, and the conventions that we need to follow to make them work together.
We will discuss a few important model functions like find(), create(), save(), del() and the use of controller functions like set() and redirect(). The HTML Form and the Time Helper will also be introduced, and we will see how the functions of these helpers can make it easier to display views.Read Create a Quick Application in CakePHP: Part 1 in full
This article by James Kennard shows how we can interact with the current user, logged in or not, and how we can interact with their session.
This article contains the following recipes:
- Getting the session handler
- Adding data to the session
- Getting session data
- Checking for session data
- Checking the session token
- Getting the user
- Determining if the current user is a guest
- Getting the user's name and username
- Getting the user's group ID and type
- Restricting a user's access using Public, Registered, and Special
- Getting the user's parameters
- Setting the user's parameters
- Extending and editing user parameters
- Sending an email to the user
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. By the end of this article by Tim Bowler, we will have an initial prototype, which will serve as a starting point. 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 article 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