light / functions
Yii2 shortcut functions
1.0.2
2015-12-01 10:38 UTC
Requires
- yiisoft/yii2: ~2.0.5
Requires (Dev)
- phpunit/phpunit: ^4.8
This package is auto-updated.
Last update: 2024-11-08 19:30:23 UTC
README
Easily using some helpers handsome.
Functions
route
=>yii\helpers\Url::toRoute
url
=> 'yii\helpers\Url::to'session
Set or get sessionflash
=>Yii::$app->session->setFlash($type, $message[, $removeAfterAccess])
cookie
Set or get cookiedel_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.