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

Symfony 1.4 doctrine:data-dump reserverd words

I have a table with 2 columns with reserved words (read, write), while yes I can change the column names I want to see if there is a way to do things as is, for educational purposes :-) When I load these tables and build my models there is no issue,…
Zjoia
  • 176
  • 3
  • 16
1
vote
3 answers

Facebook style messaging system schema design

I'm looking to implement a facebook style messaging system (thread messages) into a site of mine. Do you think this schema markup looks okay? Doctrine schema.yml: UserMessage: tableName: user_message actAs: [Timestampable] columns: id: {…
Flukey
  • 6,445
  • 3
  • 46
  • 71
1
vote
1 answer

symfony forms file upload Validation not working for Ms Word Document

I am using Symfony 1.4 and Propel as ORM. I have created a form using the Symfony Form, which contains some text inputs and file upload elements. The form structure, $this->setWidgets(array( 'name' =>new sfWidgetFormInput(), …
Harish Kurup
  • 7,257
  • 19
  • 65
  • 94
1
vote
1 answer

Symfony route_for function

I have a url and I want to know the route that it resolves to, I want a function that is the the inverse of url_for - how do I go about this? Edit: note that the url is different to the current url
cerberos
  • 7,705
  • 5
  • 41
  • 43
1
vote
1 answer

Criteria: "undefined offset"

i have this schema below, i have generated the classes using symfony and created a pair of objects using the form class generated. moto: marca: { type: varchar(255), required: true } matricula: { type: integer, required: true } Now i have this…
tirenweb
  • 30,963
  • 73
  • 183
  • 303
1
vote
4 answers

Doctrine : how to manipulate a collection?

With symfony && doctrine 1.2 in an action, i try to display the top ranked website for a user. I did : public function executeShow(sfWebRequest $request) { $this->user = $this->getRoute()->getObject(); $this->websites =…
sf_tristanb
  • 8,725
  • 17
  • 74
  • 118
1
vote
1 answer

symfony: how to loop through fields of Doctrine object

I need to loop through a list of fields in a custom validator to compare the value against a value already stored in the database. My code here: $healthUser = PersonTable::getInstance->getHealthUser(trim($values['nhi'])); if ($healthUser->getNHI()…
jdog
  • 2,465
  • 6
  • 40
  • 74
1
vote
3 answers

Resizing images - Symfony

I have a number of images that are sotred as blob data in my database. I am aware this isn't a good idea, but it's what I'm using. I have following code in my Peer class: public function getImagesPath() { $file_srcs = false; $fp =…
terrid25
  • 1,926
  • 8
  • 46
  • 87
1
vote
1 answer

How to pass the autocomplete value if it is not one of the suggested results

I have managed to build a working autocomplete in symfony with the sfWidgetFormJQueryAutocompleter like this : $this->widgetSchema['expediteur'] = new sfWidgetFormJQueryAutocompleter(array('url' => 'autocompleteExpediteur', …
1
vote
2 answers

update/validate embedded forms before saving in symfony

I would like to validate an embedded form field before it gets saved in the database. Currently it will save an empty value into the database if the form field is empty. I'm allowing empty fields, but I want nothing inserted if the form field is…
stan
  • 4,885
  • 5
  • 49
  • 72
1
vote
1 answer

Framework like richfaces

I worked several years with php in companies with joomla or symfony and they are good framework. Now, I work with java and jsf/richfaces and it's too a good framework. I like richfaces tags and the time earns with them. For my personnals projects, I…
Kiva
  • 9,193
  • 17
  • 62
  • 94
1
vote
2 answers

Doctrine 1 Migrations, How to execute raw SQL

My migration logic includes pretty complex actions like inserting data to just created tables and Stored Procedures creation. If there any way to create/generate proper migration on Symfony 1 using Doctrine 1? The fastest way in my opinion is to…
Artem Khodos
  • 172
  • 1
  • 12
1
vote
3 answers

Symfony Propel criteria

Is there any possible way to convert the MySQL object into criteria object? I tried this query: select p.disrepid, p.subject, p.body, c.disrepid as disrepid1, c.subject as subject1, c.body as body1 from discusreply as p, discusreply…
None
1
vote
1 answer

Authenticate with sfguarduser without http login

I'm trying to develop a webservice in a symfony based application, we are using a sfguarduser plugin, and i want to get user credentials authenticated in a single shot request to check user permissions and then execute webservice action, is there…
markcial
  • 9,041
  • 4
  • 31
  • 41
1
vote
3 answers

Is it possible to install symfony framework in shared hosting environment ? If possible how do I set the webserver configs?

Is it possible to install symfony framework in shared hosting environment ? If possible, how do I set the webserver configs in httpd.config as they describe in the docs ? Thank you
Thomas John
  • 1,903
  • 4
  • 24
  • 29