Easy Ajax in symfony

Wednesday, March 17, 2010

Symfony has Ajax helpers that make programming an elaborate interface a piece of cake. This tutorial will show you step-by-step how to create an Ajax-powered symfony application in minutes. Introduction Real lazy folks that can’t stand reading long documentation are advised to watch the online screencast that demonstrates exactly what is written below. Adding items to a shopping cart in common e-commerce applications isn’t very close to the actual “add to cart” metaphor, since it requires clicking an “add to cart” button, watch a new page (the shopping cart), and then go back to the shop or checkout with buttons. Ajax allows to get closer to the cart metaphor, by enabling drag-and-drop interactions and giving immediate visual feedback, without leaving the shop. The target application of this tutorial will be a symfony ported version of the shopping cart demo published by script.aculo.us1 in Rails2. It uses the prototype3 JavaScript framework (bundled with symfony) and some script.aculo.us4 JavaScript that is the core of the JavaScript helpers. Ajax Application Setup First, create a sfdemo project, an app application and a cart module: $ cd /home/steve $ mkdir sfdemo $ cd sfdemo $ symfony init-project sfdemo $ symfony init-app app $ symfony init-module app cart…

Download Easy Ajax in symfony.Pdf

0 comments:

Post a Comment

 
 
 

locate all visitor site