Category : symfony

I overrided my form in EasyAdmin to organize differently my input so I did like this : In my Crud : public function configureCrud(Crud $crud): Crud { return $crud ->setPageTitle(Crud::PAGE_INDEX, ‘admin.menu.infos’) ->setFormThemes([‘bundles/EasyAdminBundle/crud/company/edit.html.twig’]) ; } And in my Twig : {% extends ‘@EasyAdmin/crud/form_theme.html.twig’ %} {% use ‘@EasyAdmin/symfony-form-themes/bootstrap_5_layout.html.twig’ %} {% block form %} {{ form_start(form) }} <div ..

Read more

I would like to create a "PDF editor" web application that looks a bit like https://www.sejda.com/pdf-editor The site will be created with Symfony and Vue.js but what I would like to know is what the tools are used to do this and have ideas how to do it. Do online web applications that exist like ..

Read more

I have created a method to update all email signatures in my company. It works, the signature is automatically set on new emails but for replies/forwards there is no signature. Is it possible to update the signature for reply/forward? My code: public function updateSignature(User $user, string $email, string $newSignature): SendAs { // Executes the request ..

Read more

I’m having some problems with zabbixAPI on symfony5(using confirm-it-solutions/php-zabbix-api lib with php8) and im recieving this error: Warning: Undefined property: ZabbixApiZabbixApi::$authToken and to be honest i have no idea whats wrong, after trying using like getHosts or almost big part of them im getting this error. After using getApiUrl im getting data. class ZabbixController { ..

Read more

My query builder looks like this $qb ->select([ ‘c.id as c_id’, ‘c.name as c_name’, sprintf(‘(SELECT COUNT(t) FROM %s t WHERE t.example = c.example) as t_total’, t::class), sprintf(‘(SELECT COUNT(z) FROM %s z WHERE z.example = c.secondExample) as z_total’, z::class), ]) ->from(c:class, ‘c’) ->getQuery()->getResult(); is there any way to check that t_total and z_total is null? I ..

Read more