2,410 questions
1 vote
0 answers
29 views
Symfony form $form->isValid() always returns false – Form is submitted, all fields filled
<div class="container"> <h1>Hello {{ controller_name }}! </h1> <div class="row"> <table class="table"> <tr> ...
0 votes
1 answer
112 views
ExtJs 3.4, ExtDirect, Symfony and PHP 8.2 -> no data is returned
We are currently upgrading PHP form 7.1 to PHP 8.2 for a legacy application which uses Apache, FriendsOfSymfony 1.5.15, ExtJs 3.4 and ExtDirect. The following problem occurs: Sending a request to the ...
0 votes
0 answers
40 views
Symfony 1.4 user attributes reappears after removing in async ajax request
In Symfony 1.4, I am trying to show particular text when there is 'a' user attribute. On page reload I am making an async Ajax call that returns shouldDisplayText and deletes that user attribute but ...
0 votes
1 answer
200 views
Symfony 1.4: Error Clearing Cache in Maintenance Mode
I'm working with a legacy Symfony 1.4 site, and upgrading at this time is not an option. In order to deploy the site, I've created a task that first puts the site into maintenance mode, does some ...
0 votes
0 answers
40 views
Symfony tries to create related record when updating
I am trying to edit a record that has a FK and even though im passing null for the FK it is trying to create a record in the related table. The issue is the same as : Symfony (doctrine) try to insert ...
-2 votes
1 answer
357 views
Upgrade Symfony 1_4 Project to Symfony 5 [closed]
I have a legacy application which uses Symfony 1_4 PHP 5.3 MySQL 5.6 Client is asking for an upgrade of all the tech stack to the latest. Symfony 5 PHP 8 MySQL 8 How can I do this upgrade with ...
0 votes
0 answers
383 views
Redirection to a different host without changing the URL
I have a vHost where the main website is called coffee.loc at port 8002. The website is supposed to be inside an intranet network, where there are specific links that need to be available for users ...
0 votes
1 answer
226 views
PHP: In OrangeHRM v4.1.1, how to apply some admin function into employee account
2 sides of the same link, left are admin, right is employee The OrangeHRM framework works with 2 types of accounts, the admin and employee, the owner wants to add some functionality that's originally ...
0 votes
1 answer
206 views
how to read default values in a symfony 1.4 form?
I have a symfony form that its initialized with this code $this->form =new MyForm(); $this->form->setDefault('myValue',"value"); now if I go to MyForm.class.php and execute echo $...
-2 votes
1 answer
272 views
php bin/console doctrine:database:create this problem appeared (i'm using symfony4)
C:\projet1\locationvoiture>php bin/console doctrine:database:create In AbstractPostgreSQLDriver.php line 79: An exception occurred in driver: could not find driver In PDOConnection.php line 31: ...
7 votes
1 answer
407 views
Is there a better approach to sort an array that contains strings of various languages
Problem: Need to sort an array that contains strings, for example the original name of the languages, based on specific language e.g. Greek (el), in such way that the names written in Greek will be ...
1 vote
1 answer
2k views
How to add style to a form type in symfony?
I have this registration page formType that's like this: public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('email') ->add('username') ...
0 votes
1 answer
53 views
How to populate field only with Users who have a certain role in Symfony?
So I'm working on this simple ticket management system, I have two entities, User which has fields id, email, roles[] (Admin, Technician or Client), and username, password, tickets[] (which are all ...
0 votes
1 answer
130 views
Can I set html type to the subject of mail using swift?
I would like to set html type of subject using SwiftMailer. I know I can use $message->setContentType('text/html') for the body but is it possible to set html type of subject like this?
0 votes
1 answer
119 views
Symfony 1.4 / problem with Doctrine when add new table to schema.yml
I add two tables to db with this schema: Receiptjob: columns: charity_id: integer sf_guard_user_id: integer created_at: timestamp finished_at: timestamp job_type: ...