Skip to content

Zeeshan Ahmad

PHP, LARAVEL, YII, HTML, CSS. TECH BLOG !

Category: login

Yii, return to previous url after login or logout

If you want to return to your previous url after login or logout try this : <?php$this->redirect(Yii::app()->request->urlReferrer);?> To set the return url to be the url that was before the login page or registeration page was called you can put following code in views/layouts/main.php file : <?php//this checks id the controller action is not ‘login’… Continue reading Yii, return to previous url after login or logout

Published February 1, 2012
Categorized as framework, login, logut, php, return to previous url, returnurl, YII

Archives

  • September 2021
  • July 2021
  • February 2020
  • June 2018
  • June 2017
  • May 2016
  • January 2016
  • December 2015
  • November 2015
  • September 2014
  • August 2014
  • July 2014
  • September 2013
  • August 2013
  • July 2013
  • January 2013
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011

Calendar

May 2022
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
Sep    

Categories

  • \n
  • action
  • ajax validation
  • API
  • Best practices
  • Bulk action
  • captcha
  • cgridview
  • change sorting
  • checkbox
  • command line
  • composite key
  • controller
  • count
  • cpagination
  • create
  • Creating a jQueryUI Sortable CGridView
  • csrf
  • CSS
  • CSV
  • CURDATE()
  • current controller action name
  • current controller name
  • data-type-conversion
  • database
  • db
  • dependant drop down
  • display errors
  • drag drop
  • drop down
  • drop down filters
  • dropdown
  • easy
  • edit
  • errors
  • export csv for magento
  • file upload
  • Find
  • form
  • Form actions
  • fputcsv
  • fputcsv example
  • framework
  • get controller action name
  • get controller name
  • git
  • git-commit
  • git-rebase
  • git-reset
  • git-revert
  • gridview
  • gridview YII2 checkbox column save
  • image
  • image resize
  • image update
  • image upload
  • image upload with database entry
  • import
  • import sql file
  • int
  • java
  • JQUERY
  • JQuery check if checkbox is checked or not
  • JS
  • Laravel
  • linux cli
  • linux command line
  • login
  • logut
  • magento
  • Magento product import
  • magic quotes
  • magic_quotes
  • model
  • mysql
  • NOW()
  • OR
  • OR condition
  • pagination
  • paginator
  • paging
  • photo upload
  • php
  • php mysql utf-8
  • php mysql utf8
  • previous page
  • product import
  • programming
  • query
  • query builder
  • Range
  • record
  • redirect
  • redirection
  • referrer
  • relation
  • relationship
  • Remove Hidden Characters
  • Remove Response Tag
  • REST
  • return to previous url
  • returnurl
  • rowCssClassExpression
  • rules
  • search
  • select
  • simple
  • sort order
  • sql
  • string
  • thumbnail
  • timestamp
  • Tips
  • tutorial
  • type-conversion
  • Uncategorized
  • unique
  • update
  • URL
  • use
  • utf-8
  • utf8
  • validation
  • Vue Js
  • web development
  • wiki
  • YII
  • yii add a hidden field in form
  • YII CGridView add a custom action button
  • YII CGRIDVIEW drop down filter
  • YII CGRIDVIEW dropdown filter
  • yii form create drop down with values from a model
  • YII form simple drop down
  • Yii Framework
  • Yii how to add current date or time or timestamp in DB field automatically
  • yii last insert id
  • yii pagination example
  • YII relation ships join queries
  • YII2
  • yii2 dependant drop down
  • YII2 find value from db between a range
  • YII2 form country drop down
  • yii2 form state drop down based on selected country
  • yii2 get username of logged in user
  • Yii2 Gridview bulk action using checkbox column
  • YII2 gridview how to add drop down in filter
  • YII2 Gridview how to add jui datepicker in filter
  • YII2 how create form manually
  • YII2 how to generate _csrf manually
  • YII2 how to generate csrf manually
  • YII2 redirect to previous page or referrer
Zeeshan Ahmad
Proudly powered by WordPress.