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
1 answer

Swift_Mailer + symfony UTF-8

I have an issue with Swift_Mailer in Symfony. I am sending e-mail messages in French which contain a lot of "à é è" characters. At first when i tried sending these characters came out fine in my email-client, but in my colleague's email-client they…
Pino
  • 135
  • 1
  • 11
7
votes
1 answer

Symfony output only template--without adding to layout.php

Is there any way to disable the addition of layout.php to my actionNameSuccess.php? I would like this setting to be enabled for some modules and disabled(i.e. let layout.php add up) for other modules. I can solve the problem by making a new…
prongs
  • 9,422
  • 21
  • 67
  • 105
7
votes
1 answer

Symfony admin generator-- a button for save and back to list

How can I add a save and back to list button in the view for creating new record? In general, I want more buttons so I'm looking for a generic answer. EDIT: Default generator provides me with two buttons: save save and add I want a button…
prongs
  • 9,422
  • 21
  • 67
  • 105
7
votes
5 answers

Symfony and mechanize

I am trying to access to a local website designed with the Symfony framework. It works perfectly with the web browser and with CURL but when I use Mechanize I always got the 401 unauthorized answer for the server. import mechanize # Browser br =…
lc2817
  • 3,722
  • 16
  • 40
7
votes
4 answers

Web front end caching best practices for site?

Summary As I'm looking on stackoverflow and around the net, I find that there is a general lack of good documentation on best practices for caching a high performance site that uses sessions. It would be helpful if we can share some ideas around…
Jauder Ho
  • 1,345
  • 1
  • 16
  • 22
7
votes
4 answers

There is no user provider for user "Symfony\Component\Security\Core\User\User"

After struggling all day with a simple taks for Symfony 2 with no luck, I decided to ask you guys for a solution. Here is the problem: I would like to make a http_basic authentication using doctrine, so users would be prompted to enter…
Tony Bogdanov
  • 7,436
  • 10
  • 49
  • 80
7
votes
4 answers

How to get user data in form in Symfony 1.2?

I'm using Symfony 1.2 in a standard Propel form class. public function configure() { $this->setWidgets(array( 'graduate_job_title' => new sfWidgetFormInput( array(), array( 'maxlength' => 80, 'size' => 30, 'value' => '' ) ) )); …
James Inman
  • 1,030
  • 4
  • 15
  • 31
7
votes
8 answers

Multiple database transaction

In my PHP application ( constructed using symfony framework and Propel ORM), when I add a record to the MYSQL database, I need to update an external MYSQL database using web service API provided by the external vendor. The question is what is the…
Graviton
  • 81,782
  • 146
  • 424
  • 602
7
votes
3 answers

Execute custom SQL in symfony

I'm trying to execute some custom SQL to retrieve some model objects in a Symfony application. I found a tutorial on the web that said something like this would allow me to execute the query although not populate the models (populating the model…
BenCr
  • 5,991
  • 5
  • 44
  • 68
7
votes
2 answers

sfValidatorDoctrineUnique in an update/edit context

I'm using a form class in two separate contexts: both to create a new record and also to edit that record. I've set up a post-validator as follows to check that the URL field is unique. $this->validatorSchema->setPostValidator(new…
Tom
  • 30,090
  • 27
  • 90
  • 124
7
votes
4 answers

Adding virtual columns to current table in Doctrine?

I'm using Doctrine 1.2 with Symfony 1.4. Let's say I have a User model, which has one Profile. These are defined as: User: id username password created_at updated_at Profile: id user_id first_name last_name address city postal_code I would…
Matt Huggins
  • 81,398
  • 36
  • 149
  • 218
7
votes
3 answers

Disable CSS stylesheet for a specific action in Symfony

Is there any way of disabling a stylesheet in view.yml for a specific action in Symfony? For example I've got this in my view.yml: default: stylesheets: [default.css] I want to be able to do something like: displaySuccess: stylesheet:…
dazpinto
  • 105
  • 1
  • 9
7
votes
6 answers

Is Symfony a better choice than Zend for a web development shop (10+) because it is a full stack framework?

My team at work is considering to use a framework for developing web sites and applications. Some of the seniors are convinced we should use the Zend Framework because it is easier to pick-and-choose the features so the framework we will be…
spygmo
7
votes
4 answers

How do I generate a friendly URL in Symfony PHP?

I always tend to forget these built-in Symfony functions for making links.
andyuk
  • 38,118
  • 16
  • 52
  • 52
7
votes
4 answers

Using routes to generate URLs in a Symfony task

I am running Symfony 1.3.6 on Ubuntu 10.0.4 LTS. I have written a Symfony task that generates a report which contains links (URLs). Here is a snippet of the execute() method in my task class: protected function execute($arguments = array(),…
morpheous
  • 16,270
  • 32
  • 89
  • 120