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
127
votes
10 answers

PHP ORMs: Doctrine vs. Propel

I'm starting a new project with symfony which is readily integrated with Doctrine and Propel, but I of course need to make a choice.... I was wondering if more experienced people out there have general pros and/or cons for going with either of these…
Tom
  • 30,090
  • 27
  • 90
  • 124
104
votes
3 answers

How to specify Composer install path?

I have this definition: { "repositories": [ { "type": "package", "package": { "name": "symfony/sfGuardPlugin", "version": "4.0.2", "dist": { …
Tower
  • 98,741
  • 129
  • 357
  • 507
56
votes
9 answers

symfony vs cakephp

What is conceptually the difference between symfony and cakephp?
diego
44
votes
6 answers

Using Raw SQL with Doctrine

I have some extremely complex queries that I need to use to generate a report in my application. I'm using symfony as my framework and doctrine as my ORM. My question is this: What is the best way to pass in highly-complex sql queries directly to…
Levi Hackwith
  • 9,232
  • 18
  • 64
  • 115
40
votes
8 answers

How do I correctly install PHPUnit with PEAR?

I have had to de- and reinstall a newer version of PHPUnit following these directions. Now when I'm launching this line sudo pear install --alldeps phpunit/PHPUnit I see an error message, that looks like this. Unknown remote channel:…
twigmac
  • 1,772
  • 3
  • 21
  • 38
38
votes
6 answers

symfony redirect with 2 parameters

How can I redirect to another action passing 2 or more parameters? This code: $this->redirect('input/new?year=' . $year . '&month=' . $month); Results in URL: http://.../input?year=2009&month=9
kipelovets
  • 1,204
  • 2
  • 13
  • 16
35
votes
3 answers

How to query NOT NULL with Doctrine?

I have table Test: Test: id | name 1 | aaa 2 | 3 | ccc 4 | aaa 5 | 6 | ddd I want result where name is NOT NULL: aaa ccc aaa ddd How can i get with: Doctrine_Core::getTable('Test')->findBy('name', NOTNULL??) <-doesnt working and in model…
Michael Fidy
  • 389
  • 1
  • 4
  • 9
32
votes
2 answers

How to use Sessions in Symfony?

Like in classic PHP we use the magic variables to start and create sessions, so how to do that in Symfony?
Harish Kurup
  • 7,257
  • 19
  • 65
  • 94
30
votes
3 answers

Undefined index on doctrine m:n relation

I have a 'department' and 'newsItem', which are related m:n. Whenever I try to enumerate over a department's newsItems, thus triggering retrieval from the db, I get this error: at ErrorHandler ->handle ( '8', 'Undefined index: newsItems', …
Jan
  • 6,532
  • 9
  • 37
  • 48
30
votes
3 answers

Swift Mailer Delivery Status

Does anyone know if SwiftMailer send function returns delivery status? I would like to be able to know that email was delivered or not delivered.Is this possible? Thanks
DavidW
  • 5,069
  • 14
  • 46
  • 68
29
votes
3 answers

Anchor in URL when using Symfony's redirect function

I'm using $this->redirect('route', array('id' => $id)); but I need to be able to put "#" anchor at the end but I can't find a way of doing that. Any ideas? The code $this->redirect('route', array('id' => $id)); returns /route/id/5 but I want to be…
gX.
  • 922
  • 1
  • 11
  • 18
28
votes
3 answers

Java 1.6 Broken when called by background Symfony task

I have a Symfony task that generates some files calls exec to a jar and then parses the output. The jar runs fine from the command line, the task runs fine from the command line. The problem: I call the task in an action based on a form submission.…
paaat
  • 545
  • 5
  • 14
28
votes
5 answers

What is the safest way of passing arguments from server-side PHP to client-side JavaScript

In my application I rely heavily on JavaScript to enhance the user interface, but all of the data comes from a database and is processed by PHP. By default I use 'echo' statements to substitute the required values "just in time" like so: var…
Goro
  • 9,919
  • 22
  • 74
  • 108
27
votes
8 answers

Symfony 2 or Symfony 1.4?

I am starting a new Symfony project that will be very important to my company. My experience is only with Symfony 1.4. and I have 3 months to complete the project. The project should be around for years and will grow to have many features. I know…
sqlman
  • 631
  • 1
  • 7
  • 8
26
votes
1 answer

Different inheritance types in the same schema

I'm using Doctrine 1.2 on a symfony project, and I'm considering mixing concrete and column aggregation inheritance types in my schema: column aggregation lets me query in a parent table and get both parent and child records, while concrete…
1
2 3
99 100