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
6
votes
2 answers

Symfony action name in template

How can I get the action name inside a template? The template is actually a partial.
prongs
  • 9,422
  • 21
  • 67
  • 105
6
votes
1 answer

Rewrite with Nginx and PHP fastcgi still sends old request_uri to backend (php and symfony)

I am trying to migrate a php-website running the symfony framework to nginx and php over fastcgi. It all works well usining the Symfony howto from http://wiki.nginx.org/ but I run into trouble with a custom rewrite rule. My goal is to rewrite urls…
blkmr
  • 81
  • 1
  • 7
6
votes
3 answers

Best practices when including/using a "partial view"?

In modern web frameworks like Rails and symfony the concept of partial includes or partial views is well documented and recommended. What I am having trouble with lately is deciding how much design to include in the partial. It's kind of hard to…
Peter D
  • 4,851
  • 2
  • 30
  • 30
6
votes
1 answer

Using Symfony 1.4 sfGuardUser tables with Symfony 2 SecurityBundle?

I am trying to migrate a part of a software system to Symfony 2. I can't possible migrate all of them at once, so, I am looking for a way to use sf_guard_ tables for authentication/authorization in Symfony 2. Is this possible? I have done this so…
Tower
  • 98,741
  • 129
  • 357
  • 507
6
votes
1 answer

Symfony as a helper for Wordpress plugin development

I have seen several integrations between wordpress and symfony, but they are made with the goal of managins static pages content inside wordpress and symfony acting as the controller. Wordpress plugin development api seems really basic and primitive…
Mauricio Lopez
  • 447
  • 4
  • 12
6
votes
2 answers

Setting up Doctrine_Collection key mapping attribute in schema.yml

In Doctrine 1.2, it is possible to set up Key Mapping for a table where Doctrine_Collection objects created by that table will populate keys from a particular column in each record in the collection. An example from the documentation linked…
user212218
6
votes
2 answers

How to define Assetic resources in Symfony 2 yml or xml configuration file?

Can you define assetic resource in configuration file (yml/xml)? Lets take jquery as example. I would like to have configuration like this: # app/config/config.yml assetic: resources: jquery: latest:…
Karolis
  • 61
  • 1
  • 2
6
votes
3 answers

Symfony: secure delete link with CSRFProtection

I have a delete link to delete a Comment object by ID /comment/:id/delete In order to secure this link I add a csrf token to the link $CSRFTokenForm = new BaseForm(); $link = url_for(..., array('_csrf_token' => $CSRFTokenForm->getCSRFToken())); and…
tamir
  • 3,207
  • 2
  • 33
  • 51
6
votes
3 answers

Does symfony have a built-in method for comparing tainted values to the original?

I am using symfony 1.4 with Doctrine. I have built a form which uses a table that has the Versionable behaviour. As expected, Versionable creates a new version of the row every time the form is submitted and saved. My problem is that I would like…
Frostbeard
  • 77
  • 6
6
votes
3 answers

symfony: setHttpHeader() doesn't work, header() does

I built a simple action in symfony which generates a PDF-file via wkhtmltopdf and outputs it to the browser. Here's the code: $response = $this->getResponse(); $response->setContentType('application/pdf'); …
teonanacatl
  • 85
  • 1
  • 1
  • 8
6
votes
3 answers

Validation as property of the form

In the CakePHP framework, validation rules ar a property of the model. That is, it does not matter where the data comes from: when you want to write it in a model, it will have to pass the validation. Instead in symfony, you specify validation rules…
Andrea
  • 20,253
  • 23
  • 114
  • 183
6
votes
2 answers

Which framework to use: CodeIgniter, Symfony or CakePHP?

I would like to use one of the framework listed in the title but I am afraid to choose the wrong one since I don't know much about the framework. I know PHP well, but every time I create a site I spent too much time creating my own little framework…
Larry S
  • 147
  • 2
  • 5
6
votes
3 answers

Delete old migrations differences

How can I delete the old migrations differences? When doing doctrine:generate-migrations-diff I get no problems, but when doing the doctrine:migrate I get problems. It seems as if doctrine is trying to migrate old stuff that doesnt "count" any…
user89862
6
votes
3 answers

How to structure this Symfony web project?

I am new to Symfony and am not sure how to best structure my web project. The solution must accommodate 3 use cases: Public access to www.mydomain.com for general use Member only access to member.mydomain.com Administrator access to…
James
  • 4,117
  • 2
  • 18
  • 13
6
votes
2 answers

Open Discussion - Symfony - what do you do to start your projects quicker?

When you start a new project (whether it's personal or professional) what do you have at hand to quickly start developing the project? For example, when I start a new project at work, I have the following already setup from a custom sandbox: Two…
Flukey
  • 6,445
  • 3
  • 46
  • 71