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
0
votes
1 answer

Symfony Form Using "_" In ID Field

For some reason, my generated pages are using for the field name article_id instead of articleid as it is in my database and model. I have tried running "symfony doctrine:build --all" and "symfony doctrine:generate-module ..." multiple times to no…
Benny
  • 3,759
  • 6
  • 42
  • 81
0
votes
1 answer

How to configure Symfony project to listen to port 80 of Web Server

I have build a web project in Symfony 1.4 and ORM as Propel. we have a VPS to host our web site, I have created my project on web server and configured it with the IP on port no 8080, like http://s.o.m.e.i.p:8080. it works fine, but we bought a…
Harish Kurup
  • 6,455
  • 18
  • 61
  • 92
0
votes
3 answers

Problem with str_replace()

I have this code: var_dump(format_currency($product_tax = $prodotto->getFinalPrice() + $product->getTax())); var_dump(str_replace(" ", "", format_currency($product_tax = $prodotto->getFinalPrice() + $product->getTax()))); And it outputs…
ziiweb
  • 28,757
  • 70
  • 168
  • 290
0
votes
1 answer

csrf token: CSRF attack detected. for backend in production only

I added the security: true flag to my settings for the backend and was able to log in just fine in my dev env, but not having any luck in production. I keep getting the above error. Any ideas or directions you could point me in?
Matt
  • 1,012
  • 8
  • 21
0
votes
1 answer

Using sfDoctrineActAsTaggablePlugin, how to get the list of tags + the number of contents they tag?

PluginTagTable::getAllTagNameWithCount() gets me the list of tags, but I need to add a condition on the Contents the tags are tagged to. How do I get the list of tags + the number of contents, where content.state_id = 3?
Manu
  • 4,078
  • 4
  • 37
  • 74
0
votes
1 answer

Doctrine hook to validate record references onInsert

I want to add Product if and only if it has say at least two Variants (Product can have many Variants). How to validatate this in doctrine's preInsert or postInsert hook and stop transaction if there are not enough Variants? I know how to check…
sheerun
  • 1,476
  • 12
  • 27
0
votes
2 answers

disable an application or a module in Symfony

I have two applications. I want to disable one according a field stored in a database. Is possible to disable an application (((if it's not posible) a module) by code maybe using a filter) ? I've found a piece of code that executes the…
Luciano Lorenti
  • 603
  • 2
  • 8
  • 20
0
votes
1 answer

Update form data after submit Symfony 1.4

I have form which has couple fields which user should fill, but three fields are hidden: created_at, updated_at, and created_by. I want to update those fields after user subbmit the form, but I have no idea how. I tried something like this, but…
bielu000
  • 1,027
  • 1
  • 12
  • 31
0
votes
1 answer

Symfony - finding associated items, based on foreign key

I'm having a little bit of a struggle, trying to come up with a solution for the following: I have a bunch of items, that are just content items, i.e. title etc I then can associate a tag to such items, in a many-to-many relationship What I'm…
terrid25
  • 1,876
  • 8
  • 44
  • 85
0
votes
1 answer

Symfony 1.4 - Logging working for prod public but not prod admin

Just trying to set up production logging on a Symfony 1.4 site (yes we've told them to upgrade). It's logging as expected for public, but it's not generating a file or any logs for admin. This is my settings.yml in apps/admin/config: prod: …
0
votes
2 answers

symfony - custom multiple checkbox widget - help

I'm trying to create a custom multiple choice checkbox widget, that displays all items of a model. My model is named 'Tag', which is a list of tags in my DB table. I have copied the sfWidgetFormSelectCheckbox code and pasted it into my new widget…
terrid25
  • 1,876
  • 8
  • 44
  • 85
0
votes
1 answer

How to move Symfony Admin Generator files to a plugin?

I try to move my module which generated by the Admin Genrator to a plugin. Error: Fatal error: Class 'BaseFooGeneratorConfiguration' not found in ... The action.class.php includes to files:…
Flo
  • 1
  • 1
0
votes
1 answer

symfony - embeddedForm - multiple checkboxes

I have article admin module and a tag module Tags are simply a single tag per row item What I'd like to do is to embed the list of all the tags (as checkboxes) into my article module Could I do this with embedded forms? EDIT: This is my…
terrid25
  • 1,876
  • 8
  • 44
  • 85
0
votes
2 answers

Symfony: issue with declaring constant as class property inside of action

This is my variable declaration inside my action: public $var = sfConfig::get('constant_name'); Returns php error: Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in C:\wamp\www\project\app\module\actions\actions.class.php on…
whamsicore
  • 7,021
  • 9
  • 38
  • 48
0
votes
2 answers

Symfony 1.4 Error 400 on the home page in prod env (not in dev env)

I have made an tested an application on my computer and all is working fine (I used only the dev environment via the frontend_dev.php page). When I deploy this application on the test server, I have the error 400 Bad Request below: Bad Request Your…
Lilian
  • 35
  • 1
  • 8
1 2 3
99
100