Questions tagged [symfony1]

The first version of symfony, a full stack MVC framework for PHP 5.

Symfony is a full-stack PHP MVC framework

Symfony provides an architecture, components and tools for developers to build complex web applications faster. Choosing Symfony allows you to release your applications earlier, host and scale them without problem, and maintain them over time with no surprise.

Symfony is based on experience. It does not reinvent the wheel: it uses most of the best practices of web development and integrates some great third-party libraries.

Thousands of developers already trust Symfony for their applications!

Information

This tag is specific for the first version: symfony 1.x. There is also and for minor version.

Notice that, even if this version of Symfony is very stable and has been used in thousands of applications around the world, it is now outdated and surpassed by the superior version. As of November 2012, Symfony1 has reached his end of maintenance. If you are starting a new project, it is recommended that you use instead.

As of November 25, 2012 the latest stable release of symfony 1 is version 1.4.20.

Community

New users join the community every day, and that makes Symfony the most popular PHP framework around. A large community means easy-to-find support, user-contributed documentation, plugins, and free applications.

Speed

It aims to speed up the creation and maintenance of web applications, and to replace the repetitive coding tasks by power, control and pleasure.

The very small number of prerequisites makes Symfony easy to install on any configuration; you just need Unix or Windows with a web server and PHP installed. It is compatible with almost every database system. In addition, it has a very small overhead, so the benefits of the framework don't come at the cost of an increase of hosting costs.

Using Symfony is so natural and easy for people used to PHP and the design patterns of Internet applications that the learning curve is reduced to less than a day. The clean design and code readability will keep your delays short. Developers can apply agile development principles (such as DRY, KISS or the XP philosophy) and focus on applicative logic without losing time to write endless XML configuration files.

Robust

Symfony is aimed at building robust applications in an enterprise context. This means that you have full control over the configuration: from the directory structure to the foreign libraries, almost everything can be customized. To match your enterprise's development guidelines, Symfony is bundled with additional tools helping you to test, debug and document your project.

Last, but not least, by choosing Symfony you get the benefits of an active open-source community. It is entirely free and published under the MIT license.

Symfony is sponsored by Sensio Labs, a French Web agency.

Useful links:

In general:

For a migration/cohabitation with :

3991 questions
7
votes
2 answers

DQL Query fails

I've got 2 tables in an MySQL DB, im using doctrine 1.2 and symfony 1.4.4 Installedbase and Spare Installedbase: ib_id app_id location and Spare: spare_id app_id amount Now i want to join the to tables to show how many of the app are in the…
iggnition
  • 356
  • 6
  • 19
7
votes
1 answer

how do i pass variables to a layout in symfony?

when i pass variables from a controller they are only passed to a template, not a layout surrounding that template. how do i pass variables to a template? thanks
never_had_a_name
  • 90,630
  • 105
  • 267
  • 383
7
votes
1 answer

Symfony forms: how to set default value for a textarea widget

I am using Symfony 1.3.2 on Ubuntu 9.10 I want to set the default value of a textarea widget, with data read froma adb. My code snippet in the template looks likes this: render(); ?> The API docs dont show how to do this -…
morpheous
  • 16,270
  • 32
  • 89
  • 120
7
votes
6 answers

Symfony 1.4: Custom error message for CSRF in forms

Can anyone tell me where/how to customise the CSRF token error message for forms in Symfony 1.4. I'm using sfDoctrineGuard for logins and in this form particularly, whenever a session runs out and you still have the page open, it throws a very…
Tom
  • 30,090
  • 27
  • 90
  • 124
7
votes
2 answers

How to "order by" a sfWidgetFormDoctrineChoice in the Admin Generator

I'm using Symfony 1.4 and Doctrine. Let's say I have 2 classes : a Brand and a Product. When I create a new product in the Admin Generator based admin, I'd like to choose a brand from a dropdown list. The Admin Generator is doing that for me,…
Guillaume Flandre
  • 8,936
  • 8
  • 46
  • 54
7
votes
3 answers

Ignore duplicates when using INSERT in a Database with Symfony and Doctrine

I have a table CREATE TABLE `sob_tags_articles` ( `tag_id` int(11) NOT NULL, `article_id` int(11) NOT NULL, `id` int(11) NOT NULL auto_increment, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=112 And triing to save an object with…
user274101
  • 103
  • 1
  • 2
  • 6
7
votes
3 answers

Symfony - Is it possible to disable output escaping per module (or per template)?

I'm trying to output some HTML in an XML template and Symfony's escaping method is messing it up. So I tried making a copy of settings.yml in the module's config folder, but it seems to be completely ignored. Is there an easy way to change the…
Steven Mercatante
  • 24,757
  • 9
  • 65
  • 109
7
votes
4 answers

Should you validate in the Model? (Symfony based question, but related to general MVC)

This is a quick question relating to Symfony, but could be a general MVC question. I have a class in my model, for example, WebUser. This class has a property of email_address. This value must be unique to each WebUser. Now, I've made it so all my…
Stephen Melrose
  • 4,772
  • 5
  • 29
  • 42
7
votes
6 answers

OpenSource CMS on Symfony framework?

I'm looking for CMS built in symfony framework. Any examples?
OutWard
  • 121
  • 2
  • 2
  • 5
7
votes
6 answers

What framework(s) would you suggest for a strong, extensible dev platform?

First, let me apologize for Yet Another Framework Question. But I think this is different enough from the usual "What framework should I choose?" to warrant it. Here's my situation: For the past year I've been using a custom framework. It's been…
Steven Mercatante
  • 24,757
  • 9
  • 65
  • 109
7
votes
4 answers

Use of closing database connection in php

I was always in assumption that it is always a good practice to close database connection, regardless of database/ORM, like mysql_close(), Propel::close() etc. With reference to one of my other question and some other research on Internet, I came to…
Kapil Sharma
  • 10,135
  • 8
  • 37
  • 66
7
votes
9 answers

Which PHP MVC Framework for the enterprise; CakePHP or Symfony?

I'm about to begin building a huge clinical healthcare application with PHP, and I'm looking for some advice on a framework. I need to be able to come up with a quick prototype, so it's important that the framework takes care of many mundane tasks;…
slypete
  • 5,538
  • 11
  • 47
  • 64
6
votes
4 answers

In Symfony, how can I use the url_for helper in a class?

I am building a URL inside of a class and I'd like to be able to change the routing if necessary later by just changing the routing.yml file. If I have the route: userSignup: url: /user/signup param: { module: user, action: signup } How can I…
Justin
  • 4,203
  • 7
  • 41
  • 58
6
votes
1 answer

Symfony include partial from custom folder

Form example: $jobs)) ?> I have module job and partial _list.php in module folder templates. Is it possible create in templates folder partials and in include all partials from that folder? If it…
denys281
  • 2,004
  • 2
  • 19
  • 38
6
votes
1 answer

Symfony 2 Proxy to iteratively replace Symfony 1.4 project

We're currently sitting on a Symfony 1.4 implementation of our system. The system is too big to re-develop in Symfony 2 and to an over-night-switchover - the re-dev will take us probably a year. What we are thinking of doing, is to install a new…
Sarel
  • 1,210
  • 2
  • 15
  • 23