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
26
votes
5 answers

Force Exclude files from PHPUnit Code Coverage

Is it possible to forcefully exclude a folder from PHPUnit's code coverage? Problem I've got is, that I have a Symfony 1.4 project, which has folders at ./lib/vendor/symfony/*. I want to exclude anything that's inside ./lib/vendor/* -…
Sarel
  • 1,210
  • 2
  • 15
  • 23
25
votes
1 answer

Choose Zend OR Symfony? And why?

I know this has been done many times before (some posts are really old so would be nice to get feedback based on current state of play), but I would like people's advice on which framework to use for a new application that we are about to start…
Aakash Sahai
  • 3,935
  • 7
  • 27
  • 41
24
votes
4 answers

Doctrine_Core::getTable()->findAll() how to specify order?

When using a Doctrine_Table object, is it possible to specify the order of the returned collection when using findAll() or findByWhatever()? In the doc's I see some stuff about getOrderByStatement() and processOrderBy() but it isn't clear on how to…
Jake Wilson
  • 88,616
  • 93
  • 252
  • 370
23
votes
14 answers

What IDE has the strongest support for Symfony framework?

I'm looking for an IDE with use with the Symfony Framework. I have a bit of experience using the NetBeans 6.5 IDE but it does not always seem to complete the class methods, plus it doesn't seem to have any PHP code snippets built in. Here are the…
Justin
  • 4,203
  • 7
  • 41
  • 58
23
votes
3 answers

PHP Warning "Warning: ob_start(): function '' not found or invalid function name" in Symfony 1?

Why am I getting: Warning: ob_start(): function '' not found or invalid function name in /symfony-1.3\lib\config\sfApplicationConfiguration.class.php on line 155 This occurs with Symfony 1.x projects. I am using Apache 2.2 and PHP 5.4.1. The…
Tower
  • 98,741
  • 129
  • 357
  • 507
20
votes
2 answers

What is the Symfony2 equivalent of components in Symfony1?

In my Symfony2 application, I want to have a widget displayed on various pages. This can't just be defined by its template, it need to call the DB and go through the controller. In Symfony1, I would create a component and include it. How can I do…
jihi
  • 1,346
  • 2
  • 13
  • 22
19
votes
1 answer

What is the difference between redirect and forward in Symfony?

I want to know the difference between : $this->forward("module", "action"); And $this->redirect("module/action"); My first guess is that one implies a new request while the other one not, but I'm not sure.
Bite code
  • 578,959
  • 113
  • 301
  • 329
19
votes
6 answers

Find current Doctrine database connection settings in symfony

I need to know the database name and database server name inside a symfony project. How can one access the current database connection settings programmatically in symfony (using Doctrine)?
rlandster
  • 7,294
  • 14
  • 58
  • 96
19
votes
6 answers

How to create a custom yaml config file in Symfony

What I want to do is quite simple: store data in a custom config file that I want to read later on. I created my file something.yml that I put in the global config directory. It looks like that: prod: test: ok dev: test: ko all: foo: bar …
Guillaume Flandre
  • 8,936
  • 8
  • 46
  • 54
18
votes
8 answers

Why does Doctrine say it can't find the PDO driver?

I tried Symfony 2 today and I tried to play a bit with Doctrine. But when I use the command php app/console doctrine:schema:create in the command line, it returns this error: [PDOException] could not find driver doctrine:schema:create [--dump-sql]…
Marc-François
  • 3,900
  • 3
  • 28
  • 47
18
votes
4 answers

return json to ajax in symfony?

In symfony, I call an action and I want this to return json to jQuery frontend. The Jobeet tutorial teaches how to return a partial but I want to return json, not a partial.
never_had_a_name
  • 90,630
  • 105
  • 267
  • 383
18
votes
2 answers

How to increase the session timeout in Symfony

I would like to know how to increase the session timeout in symfony. Is it enough to only adjust the symfony configuration settings or must I also configure anything in my php.ini file?
Rui Gonçalves
  • 2,423
  • 6
  • 30
  • 42
18
votes
1 answer

How to implement a helper in Symfony 1.4?

I'd like to create my own helper but can't find any help on Google for Symfony 1.4/Doctrine. I guess it has something to do with creating a myClassHelper.class.php in lib/helpers/ or something, but I don't know what to implement, or if specific…
Guillaume Flandre
  • 8,936
  • 8
  • 46
  • 54
17
votes
2 answers

How to set different template layout for different modules in Symfony

How to set different template layouts for different modules in Symfony? I have a banking application that consists of a login screen, and a member section. So when a user goes to my site he will be presented with a login screen. After login in he…
Graviton
  • 81,782
  • 146
  • 424
  • 602
17
votes
1 answer

Sending an HTML email using Swift

I would like to send an auto-generated email with HTML body from my application using Swift. Here is my current code: $message = Swift_Message::newInstance() ->setFrom(array('dummy1@test.com' => 'John Doe')) …
Rui Gonçalves
  • 2,423
  • 6
  • 30
  • 42