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
1
vote
1 answer

Display toast messages after redirecting to URL

I am trying to submit a form and upon submitting the form the page should be redirected to a different URL. This is working fine, BUT the toast message appears right after the user hits SAVE button and then the page redirects to a different URL and…
1
vote
1 answer

Doctrine collection altered by other fetch query

I'm new to Unit testing in symfony, and i'ts being pretty annoying, since I experienced one problem, which took me 1 hour to identify. Hopefully, you guys will know why this happens. So I'm testing my "search" method : class TadalistTable extends…
Julien
  • 9,312
  • 10
  • 63
  • 86
1
vote
2 answers

How to properly un-escape the included values of include_component?

Precondition: escaping_strategy: true I have installed the prestaBreadcrumbPlugin, that outputs the bread html formatted breadcrumbs. The breadcrumbs included in the layout : and it…
simple
  • 1,091
  • 4
  • 14
  • 32
1
vote
1 answer

Add a class name to certain rows of an admin-generated module

I have a symfony project where I have a module called ImportBundle. For rows where $import_bundle->getIsForTesting(), I want the row to show up red. If I remember correctly, there's an easy way to add a class name to each row that meets a certain…
Jason Swett
  • 43,526
  • 67
  • 220
  • 351
1
vote
4 answers

Process is running but I can't find it

I have a symfony task that I can run with the following command: /home/jason/projects/mcif/./symfony import:start-queue I can then see that the process is running by doing this: $ ps aux | grep php jason 5760 91.0 2.5 101628 78128 pts/0 R …
Jason Swett
  • 43,526
  • 67
  • 220
  • 351
1
vote
1 answer

PreValidation in Symfony 1.4 for embedForm with sfValidatorCallback

I have a SymfonyForm which has 1:n embedForm(s). The main form and the embedForm class got their own PreValidation, which implements a conditional validation. A part of the EmbedForm class looks like this: private function configurePreValidators()…
hasentopf
  • 755
  • 1
  • 12
  • 27
1
vote
1 answer

Manipulate date with symfony 1.4

I would like to know if a class exists to manipulate date with symfony 1.4 I search a class like Calandar in Java where you can manipulate date with method like "add" to add x days to a date. I found sfDatePlugin but it seems to work only symfony…
Kiva
  • 9,193
  • 17
  • 62
  • 94
1
vote
3 answers

Symfony and Doctrine Templates - Setting up a one-to-many relationship

In my DB schema I have several tables that will be related to a parent table. The "ugly" way to solve the relation stuff would be to include the dependencies manually in the schema: sfArea: columns: id: integer name: string sfCity: …
Vincent Mimoun-Prat
  • 28,208
  • 16
  • 81
  • 124
1
vote
1 answer

Symfony 1.4 embedRelation unset Field(s)

I see in the options for embedRelation you can pass a form class, so I assumed I could simple set a new form and modify it as desired then pass that as the class to embedRelation and voila my form would look/Act as I desire. Not the case so how do I…
Zjoia
  • 176
  • 3
  • 16
1
vote
2 answers

Symfony - uploading images and saving as blob

I'm using SF1.4 and Propel and I'm having a slight problem with trying to save images to a field in my database. Does anyone have a small example that I could work from?
terrid25
  • 1,926
  • 8
  • 46
  • 87
1
vote
1 answer

Is there a Symfony register_shutdown_function / destruction equivalent for executing code post-content delivery?

I need various things to happen after the user has been sent a response, like how register_shutdown_function used to work. I've had a play with sfShutdownPlugin, it just uses register_shutdown_function, I've also had a look at using a destructor…
Steve
  • 5,771
  • 4
  • 34
  • 49
1
vote
4 answers

symfony is hallucinating connection name

Here is my config/databases.yml: all: galapagos: class: sfDoctrineDatabase param: dsn: mysql:host=localhost;dbname=galapagos username: galapagos password: U88rnh9#g # survey: # class: sfDoctrineDatabase # …
Jason Swett
  • 43,526
  • 67
  • 220
  • 351
1
vote
2 answers

"Missing class name" error on doctrine:build-schema

I have a project that connects to multiple databases. When I run doctrine:build-schema, I get an error that simply says "Missing class name." Any idea what could be going on? I suspect it has something to do with the fact that I'm connecting to…
Jason Swett
  • 43,526
  • 67
  • 220
  • 351
1
vote
1 answer

symfony program hangs up when calling database

Hi I am using the Doctrine ORM with symphony, was able to build the tables with the database generator but when I try to run the http://localhost:8080//frontend_dev.php/cines it hangs up on the line with the query as I can see in the log symfony…
Dihackna
  • 11
  • 1
1
vote
1 answer

Expected path to Sluggable builder in Symfony/Doctrine

The default string normalization (provided by the Doctrine_Inflector::urlize() "sluggifier") isn't suitable for my project, so I need to utilize my own algorithm. I set my schema up as follows: MyObject: actAs: Sluggable: fields: [name] …
Dolph
  • 49,714
  • 13
  • 63
  • 88
1 2 3
99
100