remember() public static method

Remembers the specified URL so that it can be later fetched back by BaseUrl::previous.
See also: previous()
public static remember ( string | array $url = '', string $name = null )
$url string | array the URL to remember. Please refer to [[to()]] for acceptable formats. If this parameter is not specified, the currently requested URL will be used.
$name string the name associated with the URL to be remembered. This can be used later by [[previous()]]. If not set, it will use [[\yii\web\User::returnUrlParam]].
Ejemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public static function remember($url = '', $name = null)
 {
     if ($name === null) {
         self::rememberStack();
     } else {
         parent::remember($url, $name);
     }
 }