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
12
votes
1 answer

Doctrine Subquery in InnerJoin

i have functional query in MySql: select t.won,e.etot, s.username,s.country,r.points,r.rank FROM sf_guard_user s INNER JOIN marks r ON r.user_id = s.id inner join (select t.user_id,count(t.user_id)as won from topper t group by t.user_id) t on…
Sadaf Sid
  • 1,510
  • 3
  • 17
  • 30
12
votes
2 answers

Symfony 1.4 sessions randomly lost

This is an issue I've started to experiment a few months ago and I've been trying to fix without success since. Symptoms: At random intervals of time symfony loses the session info and logs out the users. It seems somehow to be connected with the…
dcb
  • 531
  • 3
  • 15
11
votes
3 answers

Effort required to go from Symfony 1.4 to Symfony 2.0

I have a website written in Symfony 1.4. It was my first symfony website and the learning curve was a bit steep for me. It is a fairly complicated website, and I don't want to 'fix it' if its not broken. Having said that, since sf 1.4 is now legacy…
Homunculus Reticulli
  • 65,167
  • 81
  • 216
  • 341
11
votes
1 answer

Aptana 3.0.4 and PHP Debugging

I have tried to debug PHP code in Aptana 3.0.4, however without success. First, it is possible? Second, what are the specific configurations? P.S.: I am using Symfony 1.4 and I want to debug the PHP code.
radu c
  • 4,138
  • 7
  • 30
  • 45
11
votes
4 answers

PDO connection error when using symfony and MAMP

Getting an PDO error when trying to do php symfony doctrine:insert-sql The error I get: Warning: PDO::__construct(): [2002] Connection refused (trying to connect via tcp://127.0.0.1:3306) in…
user89862
11
votes
3 answers

Symfony $request->isXmlHttpRequest() issue

I need to check if the request is ajax. $request->isXmlHttpRequest() works fine, however if there is a redirect somewhere during the execution, this method will return false. How else can I check if request is ajax in this case? p.s. ajax is…
Dziamid
  • 11,225
  • 12
  • 69
  • 104
11
votes
1 answer

Symfony Friendly Shopping Cart

What options exist for a simple shopping cart system on Symfony? I'm looking for something that will: Provide an interface for tracking items to purchase. Provide shopping cart actions and templates (checkout, view cart, etc.) Support…
Jeremy Kauffman
  • 10,293
  • 5
  • 42
  • 52
11
votes
3 answers

Multiple log files in symfony

I'd like to set up an additional log file in symfony, so that some messages (payment processing in my case) would go to a different file from the rest of symfony. Is it possible? Here's my current log configuration from factories.yml: all: …
Mike
  • 111
  • 1
  • 3
11
votes
1 answer

Is it possible to use sort() on multiple fields in Doctrine 2 ODM?

I am doing a query on a result document in my doctrine mongodb *odm*. There are two indexed fields in the document which I would like to use in sort. I have written something like: $results = $this->createQueryBuilder('Document\Score') …
Himel Nag Rana
  • 744
  • 1
  • 11
  • 19
11
votes
2 answers

Symfony FOSUserBundle - include login form in layout template

We've successfully configured the FOSUserBundle; login, register, reset password, etc, are all working just fine. Now we want to incorporate the login form into our general site layout, notably placing the form into the top-right section of the…
Jason Gilmore
  • 3,698
  • 3
  • 23
  • 28
11
votes
2 answers

how to add an attachment to an email in Symfony?

I want to add an attachment to an email. I am using sfmailer class. Here I have given my code below: $mail_body = '

custom html mail content

'; $message = Swift_Message::newInstance('Message title') ->setFrom(array('sender')) …
nic
  • 929
  • 3
  • 14
  • 22
10
votes
4 answers

set content-type to json in symfony

I am using symfony 1.4, to create my project with propel as ORM. i want to get the response in JSON format, when i call a url. I have set the headers to "application/json" but it is not working, i am getting the response back in HTML format..which i…
Harish Kurup
  • 7,257
  • 19
  • 65
  • 94
10
votes
4 answers

Convert from Database / Excel / CSV to YAML data fixtures?

Was wondering if there is an easy to convert structured files into YAML data fixtures for Doctrine / Symfony. I don't see any utility with Doctrine to accept CSV. I might just start writing something simple to do this. Is it worthwhile?
Prasad
  • 1,822
  • 3
  • 23
  • 40
10
votes
6 answers

Can I use Facebook's hiphop with frameworks like Zend Framework, cakephp, symfony

Yesterday Facebook launched HipHop, a sourcecode-converter from php to c++. The set of php functions and constructions is more limited than in standard php. Are the current popular php frameworks (ZF, CakePHP, symfony) compatible with HipHop? If…
Peter Smit
  • 27,696
  • 33
  • 111
  • 170
10
votes
4 answers

Symfony: Is it possible to setTemplate for components?

There’s no setTemplate() for components! I know but maybe there is another way to do it ? (The question seems to be about a php framework: http://www.symfony-project.org/)
Andrey
  • 101
  • 1
  • 3