remember() публичный статический Метод

Remembers the specified URL so that it can be later fetched back by BaseUrl::previous.
См. также: 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]].
Пример #1
0
 /**
  * @inheritdoc
  */
 public static function remember($url = '', $name = null)
 {
     if ($name === null) {
         self::rememberStack();
     } else {
         parent::remember($url, $name);
     }
 }