Skip to content

Instantly share code, notes, and snippets.

@alexedwards
Created April 2, 2010 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexedwards/353227 to your computer and use it in GitHub Desktop.
Save alexedwards/353227 to your computer and use it in GitHub Desktop.
<?php define('BASEPATH', TRUE); include('libraries/snippt.php');
class example extends snippt
{
function index()
{
$data = array(
'message' => 'Hello world!',
'time' => date('D, jS F y - h:i a')
);
//$this->db();
$this->show('example_view', $data);
}
}
$app = new example;
$app->run();
/* END OF FILE */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment