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
35
votes
3 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
  • 389
  • 1
  • 4
  • 9
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
  • 7,257
  • 19
  • 65
  • 94
30
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
  • 5,069
  • 14
  • 46
  • 68
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
  • 631
  • 1
  • 7
  • 8
26
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,210
  • 2
  • 15
  • 23
19
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,936
  • 8
  • 46
  • 54
18
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,936
  • 8
  • 46
  • 54
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,971
  • 3
  • 18
  • 32
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,936
  • 8
  • 46
  • 54
15
votes
6 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,709
  • 9
  • 36
  • 67
15
votes
5 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
  • 153
  • 1
  • 6
14
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,508
  • 2
  • 24
  • 41
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,451
  • 5
  • 24
  • 25
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.
radu c
  • 4,138
  • 7
  • 30
  • 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
  • 65,167
  • 81
  • 216
  • 341
1
2 3
99 100