Unanswered Questions
125 questions with no upvoted or accepted answers
2
votes
0
answers
57
views
SPA in Symfony UX Turbo
I am currently learning Symfony UX. My focus today was on UX Turbo. I basically wanted to create a very basic Single Page Application.
User can 'login' using a form, submitting the form should render ...
0
votes
0
answers
57
views
Duplicating answers from a multi-section form populating multiple tables
I am implementing a system in which a client fills a form. Each form has multiple sections and each section populates multiple tables, thus user fills each section separately.
I was asked to make a ...
2
votes
0
answers
68
views
Testing PHP CodeIgniter 3 controller with PHPUnit
I want to unit test my PHP website, which uses the outdated framework CodeIgniter 3. CodeIgniter 3 uses the MVC pattern, and each page on the website corresponds to a public method in a controller.
I ...
2
votes
0
answers
127
views
comment-monk - Comment hosting script for static blogs and websites
So few days ago, I had created another review request for sqlite database schema for a comment hosting system.
Now that the app development is complete, I have pushed the initial version on github. As ...
2
votes
0
answers
133
views
Add a Custom Billing Field to WooCommerce Checkout, Order Meta, and User Meta
I have implemented a custom WooCommerce checkout field to collect a Tax Exempt Number in the billing section. This field's value is stored in the user meta upon checkout to facilitate future orders.
...
2
votes
0
answers
178
views
PHP Parser and converter - SOLID and DRY
I am working on a PHP application that transforms data from the input CSV (JSON, TXT, or XML) into an output CSV (JSON or database, for example).
The output format differs from the input: some columns ...
2
votes
0
answers
211
views
Handling large amount of traits and properties in classes
I've got an open-source project that I've been working on for a while, and I'm looking for advice on handling large classes. It's a Laravel 10+ package for building forms, and everything works fine, ...
2
votes
0
answers
79
views
Magic Class Invoker for procedural script
I have inherited a project in bad conditions that contains the following class and I need your help to improve it, the truth is I don't know if it is correctly optimized or if it has security problems ...
1
vote
0
answers
81
views
Displaying Submitted Links Securely On Your Pages
I wanted to allow my website visitors (any Tom, Dick & Harry) submit their links to my webpage for output on my page. I thought it's best to parse user submitted urls before echoing their ...
0
votes
0
answers
94
views
PHP SCRIPT OPTIMIZATION OF METHODS
Here is some php code which i think is optimized but still want to optimize it more but not sure how to do it.
...
2
votes
0
answers
83
views
editing the array I've included instead of editing the file of included array php
In order to reduce time complexity, instead of loading (and then dumping to use it for later) the whole file into an array (It would be O(n) with n=number of lines), I have saved it as array into a ...
0
votes
0
answers
356
views
Registration and login via PDO
don't blame me I am trying to learn, the code works but I am not
sure it is well optimized. Please tell me if you see something wrong.
My goal is to achieve most optimized code (and learn something in
...
2
votes
0
answers
150
views
Creating calendar - Speeding up PHP script
I'm working on a calendar for my office. Every people has his own column and there is a line for every day.
There are some periodic date, where, for example, given people have to be working on the ...
2
votes
0
answers
101
views
A UserService method that calls the UserRepository a few times
I'm trying to implement some domain driven design architecture, such as a repository to talk to the database, and a service that talks to the repository.
I have an action where I want to see if a User ...
2
votes
1
answer
143
views
Controller in Laravel with parsing, creation and relationships
The following code represents the store method of a resource controller.
A user can create an training offer on my website and can pass various information like ...