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 - admin 404

I'm trying to create a custom 404 page in my admin when something goes wrong and a 404 is thrown. In my settings.yml file in: apps/admin/config/settings.yml I have the following: all: .actions: # 404 module/action error_404_module: …
terrid25
  • 1,876
  • 8
  • 44
  • 85
0
votes
1 answer

How can you add Symfony form fields based on failed validation?

Basically, my model requires that an object is tied to a physical location. For this I'm pulling locations from an API via AJAX using keywords entered by a user in a text field, jQuery autocomplete is setup to set a hidden field to a unique ID when…
Steve
  • 5,293
  • 3
  • 30
  • 47
0
votes
1 answer

Symfony: Can a component skip rendering the partial?

In my view I always want to call a component, but the component sometimes doesn't have to render anything. Is it possible in this situation to tell symfony to skip rendering the partial? Rendering an empty partial feels a bit ugly...
Jeroen
  • 3,271
  • 1
  • 20
  • 25
0
votes
2 answers

symfony - saving blob data image sizes

I have a form, PhotoForm, which has an emebedded BlobDataForm. I can save the blbo data fine, my problem comes, with the blob_data table. I have 2 fields, image_width and image_height. I'd like to save these details as well, when the blob is…
terrid25
  • 1,876
  • 8
  • 44
  • 85
0
votes
1 answer

Symfony, Doctrine Guard Plugin, generator.yml file, customizing by using another module

I am using Symfony 1-4 and sfDoctrineGuardPlugin. My question is, on Doctrine Guard Plugin as you know each module came with generator.yml. And i need to customize generator.yml. For example, i need to display another table's (module's) column. //…
Erman Taylan
  • 383
  • 1
  • 3
  • 12
0
votes
5 answers

assigning a value to form widget

i have a form widget in _form.php echo $form['catcher_id']->renderLabel(); //the label echo $form['catcher_id']->renderError(); //the validator symfony created the base class:
charlie_cat
  • 1,790
  • 6
  • 38
  • 72
0
votes
1 answer

symfony 1.4 using post validator in New action throws error

I have the following action for a form. In the MyForm definition, I added post validator, so I can validate two fields at a time by certain condition. The problem comes when, after passing validation, symfony sends me an error, and also stores null…
Javier Novoa C.
  • 8,734
  • 10
  • 47
  • 71
0
votes
1 answer

Orange HRM Hidden Form Values based on User. Based on Symfony Framework

I was tasked with changing the form in the our in-house HR App which is based on OrangeHRM. FileName: AddEmployeeForm.php Form code: $this->widgets = array( /* Menyra sesi kodi arranzhon input format eshte e tille. …
Bentnew
  • 1
  • 2
0
votes
1 answer

symfony 1.4 validate two fields at the same time [was "modify response content in processForm"]

I'm trying to modify the content of the response from some actions in Symfony 1.4. When I process some forms, and after some conditions, in processForm method (the one called for form binding, and giving the final result of the form processing…
Javier Novoa C.
  • 8,734
  • 10
  • 47
  • 71
0
votes
1 answer

sfWidgetFormPropelChoice newbie problem help needed please

i have the following code: abstract class BaseLpmServiceForm extends BaseFormPropel { public function setup() { $this->setWidgets(array( 'id' => new sfWidgetFormInputHidden(), 'name' =>…
charlie_cat
  • 1,790
  • 6
  • 38
  • 72
0
votes
2 answers

How to change header title of new page in orangehrm

I have created a menu and a page using data from a database. But my problem is that I want to change the page header title. I am unable to find the page where to change it. See screenshot…
eharaj husain
  • 173
  • 2
  • 10
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
  • 7,021
  • 9
  • 38
  • 48
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
  • 904
  • 13
  • 21
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,340
  • 8
  • 40
  • 59
1 2 3
99
100