-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade from Kdyby\FormsReplicator 1.x #112
Comments
Unfortunately, we do not have resources to support the older versions. I can barely scrounge up enough time to maintain the primary version.
It is not clear to me what you mean. It would be helpful if you could create a minimal reproducible example against 4.0/master.
Nested multipliers are known to be buggy in some cases. I wanted to fix that after #103 but other projects took priority.
Not sure what you mean.
If you do not use the latte macros and register the class manually, instead of using the DI extension. Latte is not actually required so you might be able to install it by removing the conflict: forms-multiplier/composer.json Line 28 in 47e0d11
Unfortunately, I am not aware of any. I became a (partial) maintainer of this project because I also needed to upgrade a project that depended on Kdyby\FormsReplicator. But the project itself is minor thing I do in a free time so I can only spend so much time on maintaining its dependencies. If your project depends on component like this you could also consider contributing fixes here. |
First of all, thank you for your reply. I programmer but not very familiar in PHP/Nette technologies. I work in PHP/Nette maximally several weeks per year.
I tried to create some simple example. It seems that it works with latest version. So I will see if it will be possible to upgrade.
Can you specify what is the time we are talking about? Weeks, months? First quarter of next year?
I mean "manual rendering" in latte template: Kdyby/FormsReplicator. It works me now with version 4.0/master.
Can you write your idea more explicitly? Download library separately, add to project manually and manually register Multiplier::class into Nette? Can you give me some advice/link how to do it? Thank you very much for your comments. |
Hello everybody,
I was tasked with upgrading an old application written in PHP 5.6 and Nette 2.3 to PHP 8.1+. I gradually replaced individual libraries and got to PHP 8.1, Nette 3.1 (unfortunately to Nette\Utils 4) but stayed at Latte 2. Unfortunately Nette\Utils 4 blocks me from using the old Kdyby\FormsReplicator.
I found the Contributte\Forms-multiplier library. Unfortunately, due to using Latte 2, I cannot use a higher version of the library than 3.2. In this version, I tried the default examples that worked me, but I ran into a few problems in the application that I can't quite get around:
when setting default values to the replicator when rendering the form, the defined buttons do not see it:
Multiplier->detachCreateButtons(): void
Nette\InvalidArgumentException: Component with name 'multiplier_creator' does not exist
(apparently they are not yet added to the appropriate container)
I did not manage to define nested multipliers (multiplier in multiplier) even in the test case, which it used several times in that application
custom rendering (not through the macros) of repeatable components within the template is not working for me
Can Contributte\Forms-multiplier in version 3.2 even solve these problems?
Would switching to Latte 3 and thus the possibility of upgrading the library to version 4.* help me? Can a newer version of the library address these issues?
Should I use some other library?
Any other advices or examples?
I will be very grateful for any good advice.
Thank you.
The text was updated successfully, but these errors were encountered: