over 7 years ago
For make data more readable YII provide a application component name as 'formatter' by using this we can format our date,numbers,email.
How to use
$dataFormatter = \Yii::$app->formatter; echo $dataFormatter->asDate('2016-01-01', 'long');
Out put will be : January 1, 2016
echo $formatter->asEmail('xyz@testing.com');
Out put will be : xyz@testing.com
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)