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

Are Symfony and CakePHP too slow to be usable?

Until now, I have always said that CakePHP is too bloated and slow. I don't really know that, I just saw "some" benchmarks. What I really want to know, is that if those two frameworks (Symfony and CakePHP) are too slow to be usable in a way that the…
Robert Audi
  • 8,019
  • 9
  • 45
  • 67
17
votes
8 answers

How to use less memory while running a task in Symfony 1.4?

I'm using Symfony 1.4 and Doctrine. So far I had no problem running tasks with Symfony. But now that I have to import a pretty big amount of data and save them in the database, I get the infamous "Fatal Error: Allowed memory size of XXXX bytes…
Guillaume Flandre
  • 8,936
  • 8
  • 46
  • 54
16
votes
10 answers

Should someone with no PHP experience use a framework like CakePHP or Symfony?

I have a simple site to develop and would like to learn PHP as I go. I want the site to be secure, scalable, and easy to maintain. Should I learn a framework and PHP simultaneously? If I build off of a framework there will be lots of unfamiliar…
user56512
16
votes
9 answers

php/symfony/doctrine memory leak?

I'm having problems with a batch insertion of objects into a database using symfony 1.4 and doctrine 1.2. My model has a certain kind of object called "Sector", each of which has several objects of type "Cupo" (usually ranging from 50 up to 200000).…
Andres Letelier
  • 161
  • 1
  • 1
  • 3
15
votes
5 answers

Is it possible to call a .sql file in a doctrine migration?

Is it possible to call an .sql file in a migration class? I could not find anything on that topic.
Hyperkubus
  • 153
  • 1
  • 6
14
votes
5 answers

$request->getParameter with array - Symfony

If I have: $_POST['test'] then can I use: $request->getParameter('test'); But how can I use this if I have $_POST['test']['two']?
Gryz Oshea
  • 361
  • 3
  • 6
  • 17
14
votes
2 answers

symfony 1.4 propel:build-all not working on Mysql 5.5

i am using Symfony 1.4.8 and Mysql 5.5 i got this error when i run symfony propel:build-all You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near…
Bhanu Krishnan
  • 3,726
  • 1
  • 20
  • 40
14
votes
6 answers

Which Apache2 modules can I safely disable?

These are my enabled mods: alias auth_basic authz_default authz_groupfile authz_host authz_user autoindex deflate dir env mime negotiation php5 reqtimeout rewrite setenvif status I'm attempting to reduce Apache's memory footprint as much as…
gregghz
  • 3,925
  • 7
  • 40
  • 69
14
votes
3 answers

Get #part in URL with PHP/Symfony

I'm working with Symfony 1.2. I've a view with a list of objects. I can order them, filter them by category, or moving to the next page (there is pagination). Everything is done with AJAX, so I don't have to load all the page again. What I want to…
fesja
  • 3,313
  • 6
  • 30
  • 42
14
votes
2 answers

Doctrine: Multiple (whereIn OR whereIn) query?

I'm having trouble crafting a fairly simple query with Doctrine... I have two arrays ($countries, $cities) and I need to check whether database record values would match any inside either. I'm looking for something like: ->whereIn('country', 'city',…
Tom
  • 30,090
  • 27
  • 90
  • 124
14
votes
3 answers

How do I retain the Original Filename After upload in Symfony

Users from the backend application can upload files and publish them to the frontend. Using sfWidgetFormInputFile and sfValidatorFile, I would like to keep the original filename instead of the default functionality of a random string (i.e. …
markb
  • 3,451
  • 5
  • 24
  • 25
13
votes
8 answers

Cannot redefine class on 'require_once'

UPDATE: I've abandoned CodeIgniter, and the desire to build a web interface around my database application from PHP, as there was no way of getting rid of this bug... The Exception I get this exception: Fatal error: require_once(): Cannot…
wen
  • 3,782
  • 9
  • 34
  • 54
13
votes
4 answers

How do I generate Symfony fixtures YML from exising database data?

I was wondering if anyone knew how to generate a fixture.yml from data that is already existing in the database? As you can use the build-schema to generate a schema, is there a way to do that for data? symfony propel:build-schema
frodosghost
  • 520
  • 1
  • 6
  • 13
12
votes
2 answers

How can I get current URI from Symfony 1.4?

I am new to symfony. How can I get from Symfony 1.4 the URI path ? I have tryied like that: sfContext::getInstance()->getRequest()->getRelativeUrlRoot() but is not working.
radu c
  • 4,138
  • 7
  • 30
  • 45
12
votes
4 answers

Symfony dynamic subdomains

I'm trying to match subdomains to a customer id in symfony. i.e. i have customer1.example.com and customer2.example.com Domains are stored in a table. When a user goes to customer1.example.com, I would like to get the subdomain, look up the domain…
Flukey
  • 6,445
  • 3
  • 46
  • 71