I have a config class which gets used throughout my code. One variable within this class is the website URL. Recently, I added SSL to my server and now I need to check for this and assign either 'http' or 'https' as the protocol.
The code I tried is:
<?php
class Test
{
public static $blah = (1 == 1) ? 'this' : 'or this';
}
echo Test::$blah;
?>
This produces a parse error. How do I fix it? :/