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

how can I send json instead of form-data to my symfony controller

there a tons of tutorials on the web about how to set the action-response to type json in a symfony controller. But how can I receive JSON? $request->getRequestFormat() returns "json", but the json data seems to be lost, because…
fishbone
  • 3,140
  • 2
  • 37
  • 50
1
vote
2 answers

Ease A-B Testing / Beta Testing support within a framework

I'm looking for an implementation strategy to ease A-B testing / Beta testing. I don't see any code/plugin available for any framework. If not for a direct solution, let us at least brain-storm the requirements/expectations from the component: There…
Prasad
  • 1,822
  • 3
  • 23
  • 40
1
vote
1 answer

symfony: Own cache class for config cache

I was just able to write my own view cache class and activate it over factories.yml. Now I'm wondering how I can do the same for the config cache. Edit: Fist I thought symfony will automatically use the caching method I choosed for view cache, but…
ownking
  • 1,956
  • 1
  • 24
  • 34
1
vote
2 answers

allow users to change their own password, email and Profile

I'm creating my own blog engine to learn Symfony, and I have a question : I can add and edit users thanks to the sfGuardUser module, but how can I allow users to edit only their reccord ? Users should have access to a page allowing them to edit…
Manu
  • 4,410
  • 6
  • 43
  • 77
1
vote
1 answer

Manually setting isNew() on an object

I am working with Symfony 1.4 and propel, I have a form for products to either be created or updated and for the form action I have this code...
aikepah
  • 23
  • 7
1
vote
1 answer

TCPDF write custom barcode in html template

instead of type below in action.class.php : $pdf->write1DBarcode('CODE 39', 'C39', '', '', '', 18, 0.4, '', 'N'); How can i make it custom so that i can write it in the template? the reason is when i have to stamp the same barcode twice in one…
1
vote
2 answers

with Symfony sfDoctrineGuardPlugin, users can open a page which actually they cannot by changing url

I am using Symfony 1.4, sfDoctrineGuardPlugin. On my backend app, users can reach a page which they cannot actually by changing url manually. Is there any way to stop it? Lets say, every author can just reach their own data normally. But if they…
Erman Taylan
  • 383
  • 1
  • 3
  • 12
1
vote
1 answer

Using sfDoctrineGuardPlugin. Want to set id field without user choice

I am using Symfony 1.4 and Doctrine 1.2 and sfDoctrineGuardPlugin. I have a article create page. On my article table, i have profile_id field for saving which user (author) wrote it. My problem is, when a user write an article and click to save,…
1
vote
1 answer

How to Hydrate custom query in Symfony/Doctrine

After performing a custom query using $DBH = Doctrine_Manager::getInstance()->connection()->getDbh(); $PDO = $DBH->prepare("mysql query"); $PDO->execute(); How do I return model objects instead of record arrays? EDIT I got mine working by using…
whamsicore
  • 8,320
  • 9
  • 40
  • 50
1
vote
1 answer

Auto-generate field value on sfGuardUser when registering

I'm building a Symfony 1.4 project that is using sfDoctrineGuardPlugin for users/authentication. I have a field on my user table named "access_token" that I would like to populate with an auto-generated value upon user registration. I see that for…
Matt Huggins
  • 81,398
  • 36
  • 149
  • 218
1
vote
2 answers

File is downloading without extension?

I am trying to download a PDF file but when i click on the download button it downloads the file without extension. That is there is no PDF extension with the file when i download it! Action: public function executeDownload(sfWebRequest $request) { …
1
vote
1 answer

Symfony Doctrine query returning not working, returning 1 and 11

$PDO = Doctrine_Manager::getInstance()->connection()->getDbh(); $PDO->prepare(" //SQL Query Here ")->execute(); I was told that this will work for creating a custom Doctrine query in Symfony. Regardless of what I put inside the prepare…
whamsicore
  • 8,320
  • 9
  • 40
  • 50
1
vote
3 answers

List all files in a directory

using symfony I'm trying to create a page listing all the images in a web folder I created the following action : $dir = 'images/blog'; $fulldir = "{$_SERVER['DOCUMENT_ROOT']}/$dir"; $d = @dir($fulldir) or die('Failed opening directory for…
Manu
  • 4,410
  • 6
  • 43
  • 77
1
vote
1 answer

Integrating a "watchlist" feature in php (symfony)

I was looking for input about integrating a feature that: *When a new article is added, search for users having a watchlist taht match the article categorie. *Send them an email with the new article. I am kind of worried it will slow the application…
The Orca
  • 1,250
  • 2
  • 17
  • 31
1
vote
1 answer

symfony 1.4 - redirection in security.yml

How to redirect a user to a page depending on the role. For example: There is a module hello_world, and it has an action index (it prints the text "Hello World") There is a module user, and in it there is action userList. The administrator can view…
Jon
  • 11
  • 1