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

Multiple action.class.php

I do have an module e.g. account. Of course you will find a file called in acount/actions/action.class.php. The PHP-file action.class.php is getting big. Is it possible to extend it? for an…
craphunter
  • 820
  • 2
  • 15
  • 27
5
votes
2 answers

How to Maintain Foreign Key Constraint Across Different Databases?

I know, I know, putting two related tables on different databases isn't exactly the best design practice. But for whatever's sake, suppose that I have to do it absolutely. And I have to break up two foreign-key-related tables that were previously…
Graviton
  • 81,782
  • 146
  • 424
  • 602
5
votes
3 answers

Logging Doctrine queries from Symfony 1.4 tasks

I'd like Symfony to log the Doctrine SQL queries that one of my tasks executes to a log file, much like the web debug toolbar does for non-cli code. Is this possible? Symfony version: 1.4.12 Doctrine version: 1.2.4 Here's some example code for a…
Ian Gregory
  • 5,770
  • 1
  • 29
  • 42
5
votes
3 answers

validate url without http:// in symfony

$this->setValidator('website', new sfValidatorAnd(array( $this->validatorSchema['website'], new sfValidatorUrl(array(), array( 'invalid' => 'This is not website', )), ))); this validate…
Break Break
  • 53
  • 1
  • 3
5
votes
1 answer

MySQL User defined variable within Doctrine and Symfony

I have the following Doctrine statement which works fine. $query = $this->createQuery('r') ->select('u.id, CONCAT(u.first_name, " ", LEFT(u.last_name,1)) as full_name, u.first_name, u.last_name, u.gender, r.run_time') …
ZaV
  • 142
  • 3
  • 9
5
votes
1 answer

Symfony admin generator, link to filtered result

i have an admin generator for the folowing model: #schema.yml Author: columns: name: { type: string(255), notnull: true } Book: columns: authorId: { type: integer, notnull: true } title: { type: string(512), notnull: true } …
Benjamin Crouzier
  • 40,265
  • 44
  • 171
  • 236
5
votes
4 answers

Upgrading from symfony1 to symfony2

We're starting a project right now and we wanted to know what's the best course: use Symfony 2, even though it's not stable and final, or use Symfony1 and upgrade later?
VinnyX
  • 87
  • 1
  • 4
5
votes
2 answers

custom 500 error page in symfony 1.1

does symfony redirect to custom error page if Fatal PHP error occurs?
matpewka
5
votes
1 answer

Symfony: multiple applications in one test

I am writings functional tests for my projects' backend application modules. To test some features, I need to simulate user actions from frontend application. So, I created 2 sfTestFunctional instances: $frontendBrowser = new…
Dziamid
  • 11,225
  • 12
  • 69
  • 104
5
votes
2 answers

Separate frontend and backend users with sfDoctrineGuardPlugin

i'm starting a project adn i'm using symfony, my first time with symfony, really great actually, i already install the sfDoctrineGuardPlugin and everything is ok untill now, why?, because frontend users can login in the backend and vice versa, i…
Castro Roy
  • 7,623
  • 13
  • 63
  • 97
5
votes
1 answer

mysql load from dump: ERROR 1452 (23000) at line 13: Cannot add or update a child row: a foreign key constraint fails

I dumped a mysql database using mysqldump with the following command: mysqldump --no-create-db --no-create-info --compact --single-transaction --complete-insert --extended-insert=FALSE --flush-logs -uroot -ppassword databasename >…
oompahloompah
  • 9,087
  • 19
  • 62
  • 90
5
votes
2 answers

symfony - 500 error page customisation problem

I am ready to push a site to production (currently on staging), but I'm having a slight problem with the internal server error 500 page. I have created a file in web/errors/error500.php and I've also got: ErrorDocument 500 errors/error500.php in my…
terrid25
  • 1,926
  • 8
  • 46
  • 87
5
votes
4 answers

Symfony vs other frameworks for an eCommerce site

Currently, I am looking to switch from a home grown eCommerce website to a custom site using a framework. I need something that can upscale (handle hundreds to thousands of transactions), is easily maintained, and simple to customize. I was…
Brent
  • 155
  • 2
  • 6
5
votes
2 answers

How to create/use custom classes and helper in symfony 1.4?

What is the best way to put custom library or helper methods in symfony? I am using doctrine with my project. One place I consider to put is under project_root/lib/vendor/MyClasses/ But if I want to create a class or helper function which will use…
med
  • 369
  • 1
  • 4
  • 18
5
votes
1 answer

doctrine join without relation

Possible Duplicate: Is this possible to join tables in doctrine ORM without using relations? I have 2 classes Month and Vegetable. They don't have any relation together. I would like to play the SQL : SELECT * FROM month, vegetable In MySQL it…
Charles
  • 11,367
  • 10
  • 77
  • 114