Posts Tagged ‘Symfony’

Using symfony sfForms in a Zend Application

By marc • Jun 5th, 2010

Recently I have been experimenting with the Zend Framework to look into it’s potential to be used in my future applications. Having been a symfony junkie for the last couple of years I was reluctant to try and use it, but I see that it has come a long way since last using it. I’m […]



Custom Tasks in Symfony 1.1

By marc • Jul 15th, 2008

Awhile ago I wrote a post on how to create custom tasks in symfony 1.0. A reader posted a question on how to do this in symfony 1.1. At first I figured out a solution of how to do it manually, but then I discovered this tutorial on the symfony cookbook section: http://www.symfony-project.org/cookbook/1_1/en/tasks which describes […]



Store Symfony Sessions in Database with Propel

By marc • May 23rd, 2008

Previously, I wrote a post on how to store user sessions in a database using Doctrine. I figured that I would follow it up by writing this article to demonstrate how to do the same thing using Propel. The steps are pretty much similar, but with some slight variations.
Step1 - Create your sessions table

 

CREATE TABLE […]



Symfony Bulk Update with Propel

By marc • May 12th, 2008

Here is a quick example of how to do a bulk update with Propel within symfony. This is based on this code snippet on the symfony site. I thought it was extremely useful, so I wanted to post it as an easy reference for myself and others.
Suppose we had a query which looked like this:

 

UPDATE […]



Append Revision Number to CSS and JS Includes in Symfony

By marc • May 7th, 2008

I’m sure many of us have had a similar experience such as the following. You push out a kick-ass update to a client’s website full of brand new design changes to the main.css file or some funkalicious AJAX features to your javascript files. However, later in the day you get a frantic call from the […]



Store Symfony Sessions in Database with Doctrine

By marc • May 4th, 2008

Here is how you can store your sessions in a central database with Doctrine in symfony. If you are trying to do this with Propel, the check out my follow up post: Store Symfony Sessions in Database with Propel
Step1 - Create your sessions table

 

CREATE TABLE IF NOT EXISTS `sessions` (

`sess_id` varchar(64) NOT NULL,

`sess_data` text NOT […]



How to Use Symfony and Cron

By marc • Apr 30th, 2008

At some point you may need to have your symfony do some sort of process through the command line and trigger it through a cron job. I’ll will walk you through the steps in order to get it working properly.



Custom File Logging in Symfony for Cron Jobs or More

By marc • Apr 28th, 2008

Have you ever needed to log your own information to a specific log file in symfony? Sure, the built in logging is very useful, but sometimes you just need to log some specific information to a file of your choice and don’t need a full stack trace. Today I needed to be able to do […]



Custom Tasks in Symfony (1.0)

By marc • Apr 25th, 2008

As users of symfony know, there are many useful command line tasks that are essential to developing your symfony projects (symfony cc, symfony propel-build-model, etc). Luckily symfony is set up so that you can easily create your own tasks to do specific things that you may need. The only problem that some people may have […]



Using Multiple Databases in Symfony with Propel

By marc • Apr 22nd, 2008

There comes a time in your symfony development career when you will need to connect to multiple databases from within one application. At first it may not be obvious how to configure symfony correctly to handle a couple different databases or database servers.