Friday, May 24, 2019

Javascript Locale Date Format

This is just a simple example :


var date = new Date();
undefined

date.toLocaleDateString("id")
"24/5/2019"
date.toLocaleDateString("ja")
"2019/5/24"
date.toLocaleDateString("en")
"5/24/2019"

Thursday, May 16, 2019

CakePHP Function Call Order

beforeFilter

Controller's Action

beforeRender

Render View

afterFilter

Friday, May 3, 2019

fontawesome-webfont.ttf:1 not found in cakephp 2.10.12

This question already asked here :
https://stackoverflow.com/questions/55962332/fontawesome-webfont-ttf1-not-found-in-cakephp-2-10-12 (I acctually answered it by myself :v)
So the point is font-awesome cannot find the webfont-ttf1 and webfont-ttf2. And the solution is just create a new directory inside of webroot called 'fonts' and put 'fontawesome-webfont.ttf` there :

So next.... How do we find that fontawesome-webfont.ttf ? weell... from searching... ahaa... and I downloaded it from here http://www.tegalsari-ubud.com/assets/tegalsarinew/font-awesome-4.7.0/fonts/
So thanks for tegalsari-ubud website ;-)
and the result isss shown below..

yuupss... That's oll, tenkyew