Skip to content

Instantly share code, notes, and snippets.

@tedkulp
Created February 14, 2011 02:51
Show Gist options
  • Save tedkulp/825419 to your computer and use it in GitHub Desktop.
Save tedkulp/825419 to your computer and use it in GitHub Desktop.
<h1><?php echo $the_var ?></h1>
<h1>{$the_var}</h1>
<?php
use \silk\database\Database;
class TestController extends \silk\action\Controller
{
function index()
{
$this->set('the_var', "It works!");
}
function blah()
{
$this->set('the_var', 'This also works!');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment