light/functions

Yii2 shortcut functions

1.0.2 2015-12-01 10:38 UTC

This package is auto-updated.

Last update: 2024-10-08 19:18:23 UTC


README

version Download

Easily using some helpers handsome.

Functions

  • route => yii\helpers\Url::toRoute
  • url => 'yii\helpers\Url::to'
  • session Set or get session
  • flash => Yii::$app->session->setFlash($type, $message[, $removeAfterAccess])
  • cookie Set or get cookie
  • del_cookie delete the cookie
  • __ => Yii::t($category, $messsage[, $params][, $language])

Validators

  • is_email($string[, $options]) Check string if a valid email.
  • is_url($string[, $options]) Check string if a valid url.