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.

2428 questions
11
votes
1 answer

Symfony Friendly Shopping Cart

What options exist for a simple shopping cart system on Symfony? I'm looking for something that will: Provide an interface for tracking items to purchase. Provide shopping cart actions and templates (checkout, view cart, etc.) Support…
Jeremy Kauffman
  • 10,293
  • 5
  • 42
  • 52
11
votes
3 answers

Multiple log files in symfony

I'd like to set up an additional log file in symfony, so that some messages (payment processing in my case) would go to a different file from the rest of symfony. Is it possible? Here's my current log configuration from factories.yml: all: …
Mike
  • 111
  • 1
  • 3
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
  • 929
  • 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,497
  • 2
  • 32
  • 46
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
  • 3,161
  • 2
  • 41
  • 65
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
  • 339
  • 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
  • 81,398
  • 36
  • 149
  • 218
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
  • 7,277
  • 13
  • 68
  • 112
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,584
  • 3
  • 17
  • 38
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
  • 9,422
  • 21
  • 67
  • 105
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
  • 9,422
  • 21
  • 67
  • 105
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 Ibrohimi
  • 1,351
  • 3
  • 17
  • 35
7
votes
1 answer

How to get previous page route in Symfony?

I am looking for way to do this in 'right' symfony way.
VitalyP
  • 1,867
  • 6
  • 22
  • 31