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

elfinder with tinymce4 Integration - Setup menu toolbar

I want to integrate elFinder Plugin into TinyMCE4, I did it following the wiki page and I have installed elFinder V: 2.1.35 : Integration with TinyMCE 4.X . It works fine but I want to setup toolbar options like this: uiOptions : { //…
Kreyco
  • 19
  • 8
0
votes
1 answer

Symfony/Doctrine: How to iterate through table fields for hydration?

After making a SQL query to Table Post I wish to hydrate the $result array to a Doctrine object. Right now in order to do this I use a set command for each field, as below: $post = new post(); $post->setCategory($result['category']); …
whamsicore
  • 8,320
  • 9
  • 40
  • 50
0
votes
1 answer

How do I use debugbar for JSON answer using Symfony 1 (with no views)

I would like to use the symfony debugbar to monitor the database queries when I render json answer without a view. If I want to see the queries: either I activate the mysql log and monitor it or I remove the return renderJSON() and regarding the…
Zoltán Süle
  • 1,482
  • 19
  • 26
0
votes
1 answer

Plural Form Name for tables problem in Symfony

I use database that has been created by someone else and I can't change it. Database uses plural form for its tables' names. In my symfony application I use Propel as ORM. I wanted to change tables' names using phpName attribute in my schema.yml but…
Jacek Francuz
  • 2,420
  • 8
  • 45
  • 61
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,899
  • 8
  • 46
  • 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
  • 7,257
  • 19
  • 65
  • 94
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…
tirenweb
  • 30,963
  • 73
  • 183
  • 303
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,062
  • 11
  • 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,410
  • 6
  • 43
  • 77
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,728
  • 14
  • 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
  • 601
  • 2
  • 11
  • 22
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,826
  • 3
  • 21
  • 45
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,926
  • 8
  • 46
  • 87
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,926
  • 8
  • 46
  • 87
1 2 3
99
100