Delete Angular 4 erreur avec toPromise()

Response, Headers} from '@angular/http'; import 'rxjs/add/operator/toPromise'; //import {Observable} from "rxjs/Rx"; //import { Observable, Subject, ReplaySubject, from, of, range } from 'rxjs'; //import { map, filter, switchMap } from 'rxjs/operators'; //import 'rxjs/all'; @Component({ selector: 'app-home

0
security, cakephp, redirect

response->type(), ['application/json', 'application/xml']) ) { $this->set('_serialize', true); } } } ``` dans le controlloer connexion j'ai ceci: ```

0
telecharge fichier .zip

response = curl_exec($curl); $fichierZipPhotos=json_decode(curl_exec($curl), true); $name=$numeroAffaire.'_'.$origine.'_'.$numeroNC.'_'.$titre; header('Cache-Control: public'); header('Content-type: application/zip'); header('Content-Disposition: attachment; filename='.$name

0
Envoyer par mail un lien d'activation du compte utilisateur

Response; use Symfony\Component\Routing\Annotation\Route; //use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface; use Symfony\Component\Security\Http\Authentication\AuthenticationUtils; /** * @Route("/") */ class SecurityController

0
Symfony4 Bundle: Problème d'injection de dépendance

Response; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface; use Symfony\Component\Security\Csrf\TokenGenerator\TokenGeneratorInterface; use Symfony\Component\Security\Http\Authentication\AuthenticationUtils; use Swift

0
Erreur 302 lors de la redirection

Response */ public function registration(bool $shortForm = false, Request $request, EntityManagerInterface $manager, UserPasswordEncoderInterface $encoder, AuthorizationCheckerInterface $authChecker, \Swift_Mailer $mailer, UserRepository $userRepository): Response { $this->container->get('session')->set('errorFomRegistration', false); ... $form = $this

0
Override View Factory

response()->json([ 'id' => 'registration', 'title' => 'Inscription - ' . config('app.name'), 'content' => $view->renderSections()['content'], 'replacepage' => null, ]); } return $view; ``` ### Ce que je veux Intégrer directement : ``` if (request()->ajax()){ return response()->json([ 'id' => 'registration

0
URL n'est pas généré correctement

Response */ public function show(Property $property, string $slug): Response { return $this->render('property/show.html.twig', [ 'property' => $property, 'current_menu' => 'properties' ]); } ``` Et j'ai ce lien sur la page d'accueil comme expliqué

0
implémentation FOSJsRoutingBundle symfony 5

response = new JsonResponse(); return $response->setData(array('existe' => $existe)); } else { throw new \Exception('Erreur'); } } ``` ceci mon code twig : ``` {% extends 'superadmin.html.twig'%} {% block body %} Nouveau téléphone {% for flashMessage in app.session.flashbag.get('notice') %} × {{ flashMessage

0
Utiliser des sessions dans Symfony version 5.3.9 avec RequestStack

Response; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\HttpFoundation\Session\SessionInterface; class CartController extends AbstractController { /** * @Route("/cart/add/{id}") */ public function addToCart($id,CartServices $cartServices):Response { $cartServices->addToCart($id); dd($cartServices

4