This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// create the light controller and assign the color codes. | |
$lights = new LightController( | |
//-- our color codes | |
array( | |
'blue' => 'G5', | |
'white' => 'G6', | |
'green' => 'G7', | |
'red' => 'G8' | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$template_path = 'pages/public/'; | |
$main_template = 'main.tmpl'; | |
if(isset($_GET['p'])) | |
$file = basename($_GET['p']) . '.tmpl'; | |
else | |
$file = 'default.tmpl'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Module($filePath, $attributes) | |
{ | |
// Usage: Module('templateName.php', array('var1' => 'val1', 'var2' => 'val2', 'foo' => 'bar')) | |
//-- get Fusebox var in order to set also the circuit that has initiated the Module call | |
$a_Fusebox =& get_fusebox(); | |
$parentCircuit = $a_Fusebox['circuit']; | |
$isModule = true; | |
$myPath = getcwd() . '/'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Foo | |
{ | |
public function Run() {} | |
} | |
class Bar | |
{ | |
public function Run() {} |
NewerOlder