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

How can I toggle which fields are required after a form has been submitted in Symfony?

The system I'm working this is based around users and charity accounts, everyone has a user account but charities have a user account and a charity record tied to the user account with a user id that contains some extra fields. I need one…
pogo
  • 2,287
  • 2
  • 25
  • 36
1
vote
2 answers

Symfony Form: Set default/value on error?

My crazy designer would like the message "Required" displaying (in red) inside a field if the form has been submitted and it is invalid because of an empty field. The form in question is a login prompt and I'm using a custom class that extends…
Peter Hough
  • 560
  • 4
  • 17
1
vote
2 answers

Symfony save 2 times (one empty) in the safeguard_user table but 1 time in the profile table

I really got a weird problem where a user register symfony save 2 time in the sf_guard_user table (one empty) and link the profile to the empty row. I do not hit submit form 2 time, and the action is only executed once. The debug bar tell me that it…
The Orca
  • 1,250
  • 2
  • 17
  • 31
1
vote
1 answer

Symfony/Doctrine: issue with $this->getRoute()->getObject, only some records being retrieved

Post table: id name content 1 test1 generated from fixture 2 test2 generated 3 test3 generated 4 post1 this is actual post 5 post2 real Routing: post_show: url: /:name class: sfDoctrineRoute options: { model: Posts,…
whamsicore
  • 8,320
  • 9
  • 40
  • 50
1
vote
1 answer

doctrine:build-schema error

When I am trying to run symfony doctrine:build-schema command to fetch the schema structure to the yaml file, I got the error: SQLSTATE[42P01]: Undefined table: 7 ERROR: missing FROM-clause entry for table "t" …
Ruslan Kabalin
  • 6,580
  • 2
  • 28
  • 20
1
vote
2 answers

.htaccess redirection not working

I try to redirect http://mydomain.com to http://www.mydomain.com I add this to my htaccess file, but it not work : RewriteCond %{HTTP_HOST} ^mydomain\.fr [NC] RewriteRule ^(.*)$ http://www.mydomain.fr/$1 [L,R=301] This is the complete file…
bahamut100
  • 1,795
  • 7
  • 27
  • 38
1
vote
1 answer

Symfony : how to pass a variable between executeNew() and executeCreate()?

under symfony/doctrine, i want to set to the form a value contained in an URL parameter offer/registration/new?offer_id=23 public function executeNew(sfWebRequest $request) { // echo $request->gerParameter('offer_id'); // echoes 23 …
sf_tristanb
  • 8,725
  • 17
  • 74
  • 118
1
vote
1 answer

Symfony, Doctrine, schema.yml, -guessing- relations problem

I prepared a schema.yml -you can find below-. When i build it, build sql and inserting sql; i haven't face any problem. But when i try to load data (fixtures) it gives me an error -you can find below-. I can't find any problem on my schema and…
Erman Taylan
  • 383
  • 1
  • 3
  • 12
1
vote
2 answers

jquery validate complex date group with brackets in name

I'm using symfony framework to develop a website. My form looks like this
  • div class="field">