Search
 
SCRIPT & CODE EXAMPLE
 

PHP

get previous url symfony 4 in formpage

/* in form */
<input type="hidden" name="referer" 
	value="{{app.request.headers.get('referer')}}"/>

/* in controller */
if ($form->isSubmitted() && $form->isValid()) {
    $em->persist($thisEntity);
    $em->flush();
    return $this->redirect($request->request->get('referer'));
}
Comment

PREVIOUS NEXT
Code Example
Php :: how to get display name in wordpress 
Php :: php multi condition if 
Php :: php showing code in browser 
Php :: send var in header php 
Php :: laravel where 
Php :: ver version de php en linux 
Php :: laravel route contains particular segment 
Php :: laravel override factory values in database seeder 
Php :: woocommerce php product gallery change to carousel 
Php :: Mixed Content: The page at was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 
Php :: Unable to locate package php7.4 for kali 2021 
Php :: url() inside laravel config files 
Php :: php concat objects 
Php :: Laravel - Query Builder Raw Query selectRaw 
Php :: where condition in array in codeigniter 
Php :: laravel restrict route methods 
Php :: php sodium extension xampp 
Php :: laravel factory relationship one to many 
Php :: autoload_namespaces.php failed to open stream: Permission denied 
Php :: wc php if is product category page 
Php :: php check if all values in array are equal 
Php :: php check if parameter exists in url 
Php :: laravel get data from request 
Php :: operators in php 
Php :: composer install laravel 
Php :: php add array to array 
Php :: laravel How to capture output in a file from php artisan test 
Php :: composer dump autoload laravel 
Php :: php indexof 
Php :: route codeigniter 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =