How to define global functions in October CMS
2
I've seen this question asked over and over again, and just found how to do this cleanly and easily with October...
Just add a file called "init.php" within your plugin's root:
init.php:
<?php
function myGlobalFunction()
{
return "Hello World!";
}
There are no comments yet
Be the first one to comment