Search
 
SCRIPT & CODE EXAMPLE
 

PHP

yii2 redirect back

return $this->redirect(Yii::$app->request->referrer);

//You need also take into account that referrer can be null:
return $this->redirect(Yii::$app->request->referrer ?: Yii::$app->homeUrl);
Comment

PREVIOUS NEXT
Code Example
Php :: php maxupload 
Php :: php get browser 
Php :: php remove all but numbers 
Php :: php array has value 
Php :: yii2 sql query 
Php :: select in php mysql 
Php :: create a exporter in laravel command 
Php :: carbon parse from format 
Php :: ext-dom php 7.2 
Php :: sleep function in php 
Php :: laravel env google smtp 
Php :: laravel check method is post 
Php :: call table name in model laravel 
Php :: php artisan make migrate different folder 
Php :: wordpress escape for html 
Php :: php sum array elements 
Php :: mysql timestamp format php 
Php :: laravel 8 plural singular 
Php :: php auto scoll page with output 
Php :: laravel migration on delete set null 
Php :: admin bar hide wordpress 
Php :: how to fetch all defined constant in php 
Php :: joomla redirect 
Php :: laravel get extension from url 
Php :: destroy php variable 
Php :: php get all the mondays of the year 
Php :: magento debug white page 
Php :: the requested php extension ext-intl * is missing from your system ubuntu 
Php :: websocket 2006 MySQL server has gone away 
Php :: add csrf token laravel 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =