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
2 answers

Get Symfony URL relative to the index file

I have a symfony project which, because of DNS issues, is http:/// locally, but it needs to be http:///;/ when hosted in a more QA level environment but it may be http:/// for production (so, I…
cwallenpoole
  • 79,954
  • 26
  • 128
  • 166
1
vote
1 answer

symfony cannot find my model (Doctrine)

I get this error when I try to use a model: fatal error: Call to a member function getSubMenu() on a non-object in /workcedric2/bambinbazar/apps/frontend/modules/categories/actions/components.class.php on line 25 I tried clearing the cache with…
The Orca
  • 1,250
  • 2
  • 17
  • 31
1
vote
3 answers

Symfony generator.yml link method

How do I specify the method of an action (similar to _delete): generator: config: list: object_actions: myaction: {label: Label, action: myaction, method: post} This ignores my method setting and renders a get link:
Dziamid
  • 11,225
  • 12
  • 69
  • 104
1
vote
1 answer

Override Doctrine_Record validate method with a Doctrine_Template

in my Symfony project I would use a new strategy for manage the data form. I don't want use the Symfony Form object, but I want use the model to build them. I don't want to redeclare the Base Doctrine_Record class, so I wrote a new…
Ephraim
  • 260
  • 1
  • 6
  • 15
1
vote
5 answers

Using php code in symfony YAML as string value

I want to create some YAML key with value - the code in php. But this code shouldn't be executed - I want to use it as the value itself. How can I do this? Example: somekey: This line shouldn't be recognized as somekey: 1 after…
kpower
  • 3,871
  • 4
  • 42
  • 62
1
vote
1 answer

How does one handle foreign key constraints from within a symfony application?

Maybe I've just been entirely ignorant to the solution to my issue and, hell, maybe it's built-in... I just haven't been able to find such a solution. I've been looking passively for the last two weeks and actively for the last day. How can I…
Logan Bibby
  • 1,167
  • 1
  • 10
  • 31
1
vote
1 answer

Symfony 1.4 form checkbox array to string conversation

I have following error during creating checboxes in Symfony 1.4 app. Checkboxes are rendered but with "Array to string conversation" error. Below is my code. Form $this->setWidget('emails', new sfWidgetFormChoice([ 'label' => 'Emails', …
bielu000
  • 1,826
  • 3
  • 21
  • 45
1
vote
2 answers

symfony doesn't like PostgreSQL with doctrine:build-schema

I'm having a weird thing happen when I run doctrine:build-schema with my PostgreSQL database. It should just work, of course, but instead I'm getting this: jason@ve:~/salon$ ./symfony doctrine:build-schema >> doctrine generating yaml schema from…
Jason Swett
  • 43,526
  • 67
  • 220
  • 351
1
vote
3 answers

symfony many-to-many relation loops properties instead of objects

I have a many-to-many relation with a linked table. See (simplified) schema below. Created according to the tutorial (http://www.symfony-project.org/doctrine/1_2/en/05-Data-Fixtures#chapter_05_many_to_many) The schema imports/builds correct and…
tomvo
  • 1,409
  • 1
  • 12
  • 21
1
vote
1 answer

Get value from form choice Symfony 1.4

how I can get value from form choice widget of submitted form? Now it returns only integer index of selected option, but I need a value. Below is my code: $this->setWidget('emails',new sfWidgetFormChoice([ 'label' => __('Emails'), …
bielu000
  • 1,826
  • 3
  • 21
  • 45
1
vote
3 answers

symfony admin generator form object

Hey guys, I've used the Symfony admin generator for a module. Everything is working, but when the form for my model is instantiated, I need to pass in my own option. I could do this myself by overriding the executeNew, executeCreate functions in…
jolly18
  • 11
  • 1
1
vote
2 answers

Doctrine: join one-to-one relation

Suppose we have two models: Post and ViewsCount. Relation type is 1:1. Now I want to retrieve last 5 posts with their views stats: $posts = PostTable::getInstance()->createQuery('p') ->leftJoin('p.ViewsCount') // relation name is "ViewsCount" …
Darmen Amanbay
  • 4,869
  • 3
  • 29
  • 50
1
vote
1 answer

Symfony admin generator - One-to-one relationships

I have in my model defined two entities linked by a one-to-one relationship: User: columns: home_address_id: integer relations: HomeAddress: class: Address local: home_address_id foreignType: one Address: columns:…
Vincent Mimoun-Prat
  • 28,208
  • 16
  • 81
  • 124
1
vote
2 answers

symfony - jquery datetime picker

I am going to have a datetime value in my admin module and I was looking for a jquery/javascript way of populating the widget as a datetime. I have looked at the sfExtraFormPlugin and go the datepicker working, but it seems that there is no datetime…
terrid25
  • 1,926
  • 8
  • 46
  • 87
1
vote
1 answer

static or non static functions in doctrine generated classes, symfony 1.4?

If you have noticed people write custom methods that deal with retrieving or inserting/updating records in db in two ways: 1. Static method 2. Non static methods(object method). example: get a records from a table A: static public function…
simple
  • 1,091
  • 4
  • 14
  • 32
1 2 3
99
100