Quantcast
Channel: User Joshua Bakker - Stack Overflow
Browsing index pages (37 articles)
↧

Dropzonejs remove files without calling remove callback

I'm using Dropzonejs to upload files to use in my module. The way it works is you edit an item, you drag a file to the dropzone, the dropzone hides and you see a preview of the image. That preview is...

View Article


PHP How to prevent foreach from overriding outer variables

Currently I'm trying to clean up as much code as possible of the website of the company I work at, without like completely rewriting (stuff like removing dumb comments like // declare variables, clean...

View Article


Java hibernate throws Exception at boot

I'm working on a project with Hibernate now but I get an error when running my project.On server.java (my entry point) I got this:private static HibernateUtil hibernateUtil;And in my entry...

View Article

:not(:first-child) and :not(:first-of-type) not working

I have sort of a tree system. What I'm trying to do is give all the parents a margin except for the first one. This is my HTML:<div id="someDivID"><div class="theBody"><div...

View Article

Symfony phpunit functional test edit confirm inconsistent

I added some functionality where if you edit an item that somebody edited in the meantime, you go to an "edit confirm" page where you can select which changes you want to overwrite.How it's done:if...

View Article


Lazy loaded relationship not retrieved in async Messages with RabbitMQ

We have a route where we can either give access or decline access to keys. When either one is done, an async message will be sent (and consumed with RabbitMQ).This is what is in our Message class...

View Article

Missing dependencies when requiring Elfinder with Symfony webpack encore

We have a Symfony project and we use webpack encore. In our backend we have a WYSIWYG editor (ckeditor). As filemanager we use this bundle: https://github.com/helios-ag/FMElfinderBundle (which uses...

View Article

Symfony eventsubscriber on a specific path

So in our Symfony application, we have several EventSubscribers. Some of them should only be triggered on our main website, some only on our admin section (all routes with /admin).Now, most of the...

View Article


NodeJS Electron with express

I'm trying to make a webapplication using electron (for the website and desktop application) and express (for sessions etc.)Now, I got this as my app.js:const express = require('express');const {app,...

View Article


Link ncurses in CLion CMake

I'm currently playing around with ncurses. Ncurses is a library I installed, NOT my own file. I already did some stuff but using an IDE is much easier so I decided to use CLion (I'm on Linux so can't...

View Article

Netbeans PHPDoc local variable not working

I am trying to document my code more often and now I'm writing a class and want it to be fully documented. However, for some strange reason, local variable documentation (with PHPDoc of course) doesn't...

View Article

Symfony validate get old value without form

In our project we have multiple entities that are translatable (using Translatable from DoctrineBehaviors). Our users have rights on languages (or not), and if the user doesn't have rights on a...

View Article

Symfony forms Length constraint overrides NotBlank constraint

So in my form I have a field to insert password. On the field in the formbuilder I added 2 constraints; one for if the field is empty and one for if the password is too short.new NotBlank(['message'...

View Article


Symfony form stepwizard without entity

So I'm currently working on a project and basically I have to make sign up for a customer. A customer is either a person or an organization. If it's an organization, the customer has to provide the...

View Article

Symfony form theme custom attribute on row

Okay, so I have a form theme for custom radio button. In the form theme I render the label as an image. The image is basically a call to a route (which returns BinaryResponse):<img src="{{...

View Article


Answer by Joshua Bakker for Symfony form theme custom attribute on row

Seems like I had to use choice_attr:'choice_attr' => function($choice, $key, $value) { return ['path' => 'showSlideImage'];},I tried using choice_attr before, but I wasn't using a callback...

View Article

Get all items and sort the items used in a relationship on top in Symfony

Okay, so when editing a slideshow, the user needs to see a list of all slides (both slides that are used in the slideshow and those who aren't). The slides that are used in the slideshow needs to be...

View Article


Image. textfield and textarea in buildForm for every domain language in...

Okay, another issue. It's a bit hard to explain so sorry in advance.I have an entity called SlideContent, which basically stores the id, the slide (relation to an entity called SlideshowSlide),...

View Article

Symfony 4 file upload with entity

I'm working on my module and one part is where you can add new backgrounds to the database to use in a slideshow.I have a SlideshowBackground entity with 3 properties:/** * @ORM\Id() *...

View Article

Answer by Joshua Bakker for PhpStorm doesn't recognize KernelBrowser...

Okay, I think the reason why it didn't work at first was because I didn't create the project but instead cloned a project from our server.With a new project, it worked how it should. With my cloned...

View Article
Browsing index pages (37 articles)


Latest Images