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
9
votes
7 answers

Add new enum column during migration

Can anyone please tell me how can I add a new column of type enum to my schema in order to implement a Doctrine Migration?
Rui Gonçalves
  • 2,423
  • 6
  • 30
  • 42
9
votes
6 answers

zend-framework versus Kohana versus Symfony

Which one of this frameworks would you recommend to someone who knows the basics of PHP? What are the advantages and disadvantages?
John
  • 107
  • 1
  • 3
9
votes
2 answers

Symfony difference between .class.php and Table.class.php

Cuold someone explain me the difference between the Doctrine auto generated files .class.php and Table.class.php? For example in the Jobeet tutorial there's JobeetJob.class.php and JobeetJobTable.class.php. I don't understand…
ArR4y
  • 91
  • 2
8
votes
3 answers

Count and group-by with Propel

In Doctrine I can do: public function getCount() { $q = $this->createQuery('q') ->select('*') ->addSelect('count(q.name) as count') ->groupBy('q.name') ->orderBy('count DESC'); …
Johan Dannenberg
  • 81
  • 1
  • 1
  • 2
8
votes
1 answer

url_for in backend for frontend - Symfony

i made in frontend nice url with symfony routing.yml. In frontend i can use for example: url_for('@news', $news); this generate for me: http://mysite.com/frontend_dev.php/news/nice-title/1 but if i use this in backend i…
Olly Vitts
  • 99
  • 1
  • 5
8
votes
6 answers

Weird PHP Parse/Syntax errors with VMWare 6.5 + PHP 5.3.3 + Symfony 1.4

While following the "Practical Symfony" course, I have run in a strange error. I have installed a Debian Squeeze in a VMWare 6.5.5 machine. It comes with PHP 5.3.3 and I am using Symfony 1.4. The source files are on the host, I am accessing them…
Adirelle
  • 148
  • 6
8
votes
2 answers

Preventing Doctrine's query cache in Symfony

In my Symfony/Doctrine app, I have a query that orders by RANDOM(). I call this same method several times, but it looks like the query's result is being cached. Here's my relevant code: $query = $table->createQuery('p') ->select('p.*, RANDOM()…
Matt Huggins
  • 81,398
  • 36
  • 149
  • 218
8
votes
3 answers

Symfony form generation - why?

I've been pondering this for awhile now - I never fully grasped why you'd want to generate all your forms programmatically, unless they were going to be fully dynamic. But from my experience, most are static. Now, getting to the main question at…
xil3
  • 16,305
  • 8
  • 63
  • 97
8
votes
3 answers

Is ORM all or nothing?

If I use an ORM let's say with Zend or Symfony. Is it an all or nothing deal? I'd like to use the ORM, but also want to optimize performance in some cases and write the query myself to get to the nitty gritty. So if I start using an ORM, is it…
jblue
  • 4,390
  • 4
  • 46
  • 79
8
votes
4 answers

Dynamic page titles in Symfony 1.4

I'm wondering if anyone's got any good advice/experience regarding setting dynamic meta titles in Symfony? Currently, the solution I'm aware of would be to use the following code to set a title individidually in each…
Tom
  • 30,090
  • 27
  • 90
  • 124
8
votes
4 answers

Overriding Doctrine_Record (sfDoctrineRecord) instance methods in Doctrine PHP Symfony

My background is in Propel, so I was hoping it would be a simple thing to override a magical getter in a Doctrine_Record (sfDoctrineRecord), but I'm getting either a Segfault or the override method is simply ignored in favor of the one in the…
notbrain
  • 3,366
  • 2
  • 32
  • 42
8
votes
5 answers

Symfony 2 This form should not contain extra fields

I created a form using formBuilder in Symfony. I add some basic styling to the form inputs using an external stylesheet and referencing the tag id. The form renders correctly and processes information correctly. However, it outputs an unwanted…
AnchovyLegend
  • 12,139
  • 38
  • 147
  • 231
8
votes
6 answers

Seriously speeding up PHP?

I've been writing PHP for years, and have used every framework under the sun, but one thing has always bugged me... and that's that the whole bloody thing has to be interpreted and executed every time someone tells my server they want the page…
Lee Benson
  • 11,185
  • 6
  • 43
  • 57
8
votes
6 answers

Symfony (PHP framework) and MongoDB ( or any json-based database)

I was wondering if its possible to use a json-based schema-free, document-based database like Mongodb or Couchdb on a symfony project like its used for ruby-on-rails websites? And if yes, how can it be done?
Parag
  • 963
  • 2
  • 10
  • 27
7
votes
1 answer

sfConfig::get in a task in symfony

I have tried to use a parameter in my app.yml file inside a task in symfony 1.4, but it doesnt get the value. sfConfig::get() Do you have any advice?
JERC
  • 1,584
  • 3
  • 17
  • 38