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

one to many with symfony's admin generator

I'm using Symfony's 1.4 admin generator, and I have a question about a one to many relationship. If A has many B and B one A, I will see a listbox when editing B, that's ok, but I have to add a list (with multiple choices) of B when I edit an A. I…
fego
  • 309
  • 5
  • 20
1
vote
1 answer

How to determine a Multicast MAC Address with PHP5?

I'm working on a Accounting Tool in PHP which connects to a CISCO Switch and insert a MAC Address on a specified port. I use Symfony as my underlying php framework. If I try to insert a Multicast MAC address as a FastEthernet secure address the…
hanspeter
  • 11
  • 1
1
vote
2 answers

Using custom table name in Symfony plugin sfDoctrineGuardPlugin?

I'm attempting to use the sfDoctrineGuardPlugin in my Symfony 1.4 project. This plugin includes a schema.yml file, which is used to define all the tables involved. The table names take on the form of: sf_guard_user, sf_guard_user_group,…
Matt Huggins
  • 81,398
  • 36
  • 149
  • 218
1
vote
1 answer

Symfony autoload skipping classes

I have a symfony 1.4 project that has been is use for several years now. In the past few weeks the autoload has started skipping classes, arbitrarily as far as I can tell. This occurs in both plugins and files located in the lib/ directory. If I…
Jestep
  • 984
  • 2
  • 8
  • 20
1
vote
1 answer

Symfony 1 create a view cache files before user visits the page

After clearing the cache, is there any way to create a view cache files before user visits the page? Currently we are using the below command which creates a few of the cache files but not the view ones. symfony cache:prime --env=qa frontend
1
vote
0 answers

Problem with Chrome and Symfony

At my work we have a very old symfony app (developed by the guy who have my position before the guy I came to replace), and today a customer call to us saying that a "print this article" functionality doesn't work in Chrome. The functionality is…
Nisanio
  • 4,056
  • 5
  • 34
  • 46
1
vote
3 answers

How to internationalize metas such as title in view.yml?

I'd like to internationalize the strings of my view.yml, I can't find how to do this. I have a solution that is bad, in my opinion: metas: title: getI18n()->__('TITLE'); ?> I'd like to find a way to do it…
Gregoire
  • 3,735
  • 3
  • 25
  • 37
1
vote
1 answer

One to many connection in Doctrine

I have tried to create one-to-many connection, but it works very strange. I suspect that class User has one Country, and class Country has many Users. But User->Country return ever an array with one Country, (Doctrine Collection, not a Record). Have…
burgua
  • 90
  • 6
1
vote
1 answer

Symfony 2/Doctrine - Always available DB Connection?

Accoring to the Symfony 2 Documentation, you have to use the following PHP code to connect to the database and execute a query... $conn = $this->get('database_connection'); $users = $conn->fetchAll('SELECT * FROM users'); I'm a complete novice with…
Kieran
  • 2,554
  • 3
  • 26
  • 38
1
vote
1 answer

contextual caching of templates with components

I have a page with a menu component. The menu marks the active element with a different CSS class. Now I want to cache each menu item page. The different pages come all from the same module/action, the difference is just the ID (foo/bar?item=1). The…
ownking
  • 1,956
  • 1
  • 24
  • 34
1
vote
1 answer

embedForm saving problem - Symfony

I have schema like: Schema: article: id: ~ title: { type: VARCHAR, size: '255', required: true } created_at: { type: TIMESTAMP, required:…
terrid25
  • 1,926
  • 8
  • 46
  • 87
1
vote
3 answers

Symfony doctrine i18n behavior data-load failure: Integrity constraint violation

I want tho have I18N categories table. I have followed the jobeet example. Schema and fixtures data below. ./symfony doctrine:build --db --all-classes --and-migrate ./symfony doctrine:data-load data/fixtures/category.yml When I run these commands…
Lauri
  • 145
  • 8
1
vote
3 answers

symfony 1.4 admin generator unset fields

I've used the "doctrine:generate-admin" task. Everything is working but I want to use the generator.yml file to unset some form fields there rather than having to unset them in the Form class itself. Things like "updated_at" I only ever need saved…
joe1
  • 11
  • 1
  • 2
1
vote
1 answer

Simulating an enum type in Propel: error trying to generate form classes

documento: {type: varchar, sqltype: enum, size: "'F','DDT','RC','FOURTH_ELEMENT','PM','KV','VN','CMS'", required: true, defaultValue: 'F', required: true} I get the next error message (always with the fourth element, I mean if i write 3 or less…
tirenweb
  • 30,963
  • 73
  • 183
  • 303
1
vote
2 answers

Symfony form with doctrine table other than getTable()->find() is not working

I get a really anoying error when I try to edit an entry from a table, in tutorial they always use getTable()->find(), but I need to verify that the person logged in is the owner of that entry here what I did: In the action: public function…
The Orca
  • 1,250
  • 2
  • 17
  • 31