These are chat archives for COCOPi/cockpit

12th
Dec 2017
Sebastian Kolind
@sebastianks
Dec 12 2017 10:58
@aheinze Hi! If I make a custom bootstrap.php in /config folder, can I access App->Utils->sluggify()? Or should I copy the sluggify function into the bootstrap.php I just created? :)
Artur
@aheinze
Dec 12 2017 12:03
well, App.Utils.sluggify is a JS function, bootstrap.php is PHP, so what do you want to achieve?
Sebastian Kolind
@sebastianks
Dec 12 2017 13:20
ahh, sorry, thought it was php, didn't check the language. I want the sluggify php function that exists - I can see it in the source code on github?
Artur
@aheinze
Dec 12 2017 13:59
cockpit()->helper('utils')->sluggify($text)
Sebastian Kolind
@sebastianks
Dec 12 2017 14:29
awesome, thank you