Questions tagged [symfony-1.4]

Questions about Symfony version 1.4, a PHP framework by Sensio Labs.

Symfony is a PHP Web Development Framework developed and maintained by Sensio Labs.

The symfony 1.4 version is the last Long Term Support release for the symfony 1.x branch and it is maintained until November 2012.

You will find more information about documentation, detailed installation guide and changelog on the official website.

This tag is specific for the 1.4 version of Symfony. See the tag for Symfony 1.x in general. If your question targets Symfony 2.x, use instead.

Symfony 1.4 is released under the MIT license.

2431 questions
11
votes
3 answers

Is it possible to call a .sql file in a doctrine migration?

Is it possible to call an .sql file in a migration class? I could not find anything on that topic.
Hyperkubus
  • 113
  • 1
  • 6
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
  • 899
  • 3
  • 14
  • 22
10
votes
2 answers

Porting a website from Symfony 1.4 to 2.0

I've got a huge site that has been written (in a very bad way) in symfony 1.4 now, I've been asked to make some substantial changes to the navigation flow, add some features and so on.. considering the effort, I was wondering if it would be better…
holographix
  • 2,300
  • 2
  • 27
  • 43
9
votes
5 answers

change month name to french

I have this code: getEmail()."' demande en ".date('d.M.Y', strtotime($sgps_newsletter->getCreatedAt())) ?> but the month name is appering in english. What can I do to show it in french? I've change the…
Eva Dias
  • 1,591
  • 9
  • 30
  • 65
9
votes
2 answers

Sending POST Request to Secured Action

I have an action that takes POST data secured by sfGuard. This means that if the user is not logged in, the POST data will be sent to the log in form. Ordinarily, this is not a problem, the user continues to log in, and has to submit the data…
Druckles
  • 2,273
  • 2
  • 34
  • 52
8
votes
1 answer

url_for in backend for frontend - Symfony

i made in frontend nice url with symfony routing.yml. In frontend i can use for example: url_for('@news', $news); this generate for me: http://mysite.com/frontend_dev.php/news/nice-title/1 but if i use this in backend i…
Olly Vitts
  • 99
  • 1
  • 5
8
votes
2 answers

Symfony Multiple application interaction

In symfony 1.4, how to call an action of another application from the current action?
user800916
8
votes
3 answers

Loading namespaced classes with Symfony 1.4's autoloader?

How to register namespaces (with PHP 5.3) in the Symfony 1.4 for the autoloader class feature (like the Symfony 2.0)?
Wagner Pinheiro
  • 319
  • 5
  • 14
8
votes
2 answers

Preventing Doctrine's query cache in Symfony

In my Symfony/Doctrine app, I have a query that orders by RANDOM(). I call this same method several times, but it looks like the query's result is being cached. Here's my relevant code: $query = $table->createQuery('p') ->select('p.*, RANDOM()…
Matt Huggins
  • 73,807
  • 32
  • 140
  • 214
8
votes
2 answers

How do I install Symfony 1.4 using composer?

I have some legacy Symfony 1.4 projects which I'd like to enhance with a composer.json file for their dependencies. I've managed to configure composer to use the "plugins" directory as opposed to "vendors". However according to the Symfony 1.4…
Alexander Trauzzi
  • 6,481
  • 10
  • 53
  • 93
7
votes
1 answer

sfConfig::get in a task in symfony

I have tried to use a parameter in my app.yml file inside a task in symfony 1.4, but it doesnt get the value. sfConfig::get() Do you have any advice?
JERC
  • 1,499
  • 3
  • 16
  • 36
7
votes
1 answer

Symfony output only template--without adding to layout.php

Is there any way to disable the addition of layout.php to my actionNameSuccess.php? I would like this setting to be enabled for some modules and disabled(i.e. let layout.php add up) for other modules. I can solve the problem by making a new…
prongs
  • 8,944
  • 19
  • 61
  • 104
7
votes
1 answer

Symfony admin generator-- a button for save and back to list

How can I add a save and back to list button in the view for creating new record? In general, I want more buttons so I'm looking for a generic answer. EDIT: Default generator provides me with two buttons: save save and add I want a button…
prongs
  • 8,944
  • 19
  • 61
  • 104
7
votes
1 answer

Is there a better approach to sort an array that contains strings of various languages

Problem: Need to sort an array that contains strings, for example the original name of the languages, based on specific language e.g. Greek (el), in such way that the names written in Greek will be sorted first and then the rest of the names in…
Salim Ibrogimov
  • 1,334
  • 2
  • 14
  • 32
7
votes
2 answers

sfValidatorDoctrineUnique in an update/edit context

I'm using a form class in two separate contexts: both to create a new record and also to edit that record. I've set up a post-validator as follows to check that the URL field is unique. $this->validatorSchema->setPostValidator(new…
Tom
  • 28,567
  • 26
  • 84
  • 120