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
32
votes
2 answers

How to use Sessions in Symfony?

Like in classic PHP we use the magic variables to start and create sessions, so how to do that in Symfony?
Harish Kurup
  • 6,455
  • 18
  • 61
  • 92
29
votes
3 answers

Swift Mailer Delivery Status

Does anyone know if SwiftMailer send function returns delivery status? I would like to be able to know that email was delivered or not delivered.Is this possible? Thanks
DavidW
  • 4,855
  • 13
  • 44
  • 67
27
votes
8 answers

Symfony 2 or Symfony 1.4?

I am starting a new Symfony project that will be very important to my company. My experience is only with Symfony 1.4. and I have 3 months to complete the project. The project should be around for years and will grow to have many features. I know…
sqlman
  • 611
  • 1
  • 7
  • 8
23
votes
2 answers

How to query NOT NULL with Doctrine?

I have table Test: Test: id | name 1 | aaa 2 | 3 | ccc 4 | aaa 5 | 6 | ddd I want result where name is NOT NULL: aaa ccc aaa ddd How can i get with: Doctrine_Core::getTable('Test')->findBy('name', NOTNULL??) <-doesnt working and in model…
Michael Fidy
  • 269
  • 1
  • 3
  • 9
18
votes
6 answers

How to create a custom yaml config file in Symfony

What I want to do is quite simple: store data in a custom config file that I want to read later on. I created my file something.yml that I put in the global config directory. It looks like that: prod: test: ok dev: test: ko all: foo: bar …
Guillaume Flandre
  • 8,624
  • 8
  • 43
  • 53
18
votes
7 answers

Symfony 1.4 using deprecated functions in php 5.5

I recently upgraded PHP from version 5.3.27 to 5.5.0. Everything is working fine in my Symfony 2.3.2 project, and I can enjoy the latest PHP functionalities. Now when I am going back to my other Symfony 1.4.16 project, I get a PHP error about…
mika
  • 1,911
  • 3
  • 17
  • 31
17
votes
8 answers

How to use less memory while running a task in Symfony 1.4?

I'm using Symfony 1.4 and Doctrine. So far I had no problem running tasks with Symfony. But now that I have to import a pretty big amount of data and save them in the database, I get the infamous "Fatal Error: Allowed memory size of XXXX bytes…
Guillaume Flandre
  • 8,624
  • 8
  • 43
  • 53
17
votes
1 answer

How to implement a helper in Symfony 1.4?

I'd like to create my own helper but can't find any help on Google for Symfony 1.4/Doctrine. I guess it has something to do with creating a myClassHelper.class.php in lib/helpers/ or something, but I don't know what to implement, or if specific…
Guillaume Flandre
  • 8,624
  • 8
  • 43
  • 53
16
votes
5 answers

Force Exclude files from PHPUnit Code Coverage

Is it possible to forcefully exclude a folder from PHPUnit's code coverage? Problem I've got is, that I have a Symfony 1.4 project, which has folders at ./lib/vendor/symfony/*. I want to exclude anything that's inside ./lib/vendor/* -…
Sarel
  • 1,043
  • 2
  • 12
  • 22
14
votes
3 answers

How do I retain the Original Filename After upload in Symfony

Users from the backend application can upload files and publish them to the frontend. Using sfWidgetFormInputFile and sfValidatorFile, I would like to keep the original filename instead of the default functionality of a random string (i.e. …
markb
  • 3,211
  • 5
  • 22
  • 25
13
votes
9 answers

Reverse the order of a Doctrine_Collection

I'm looking for a clean way to reverse the order of a Doctrine_Collection. I know it sounds weird, so let me explain my (simple) goal: I need to display the x latest/newest record, but I have to display it in the reverse order: the oldest 1st,…
haltabush
  • 4,368
  • 2
  • 21
  • 40
12
votes
2 answers

How can I get current URI from Symfony 1.4?

I am new to symfony. How can I get from Symfony 1.4 the URI path ? I have tryied like that: sfContext::getInstance()->getRequest()->getRelativeUrlRoot() but is not working.
Ek Kosmos
  • 4,050
  • 7
  • 28
  • 45
11
votes
3 answers

Effort required to go from Symfony 1.4 to Symfony 2.0

I have a website written in Symfony 1.4. It was my first symfony website and the learning curve was a bit steep for me. It is a fairly complicated website, and I don't want to 'fix it' if its not broken. Having said that, since sf 1.4 is now legacy…
Homunculus Reticulli
  • 54,445
  • 72
  • 197
  • 297
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
  • 9,973
  • 5
  • 39
  • 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
1
2 3
99 100