Posts Tagged: javascript

Tutorial: HTML5 Local Storage

Until HTML5 came along, storing data on the client side was always a total hack. Now it is remarkably easy and it works consistently across all modern browsers. I’ll demonstrate how to do it by creating a dummy application for saving user preferences. I wrote this demo app as a Symfony bundle. You can download… Read more »

Where to put assets like CSS and Javascript in Symfony

I just solved a fairly simple problem, but for my own record and if it could possibly save someone some time, here you go. In Symfony, you want to put your assets (CSS, Javascript, images) in the right location, which is src/BUNDLE_NAME/Resources/public. To use your assets in your web application, run this command. php app/console… Read more »