Skip to content

Instantly share code, notes, and snippets.

@martisj
Created September 9, 2012 09:52
Show Gist options
  • Save martisj/3683525 to your computer and use it in GitHub Desktop.
Save martisj/3683525 to your computer and use it in GitHub Desktop.
controller
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class KingOfHearts extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->template->title('The King of Hearts - A short story about whales and seagulls');
}
public function index()
{
$this->template->build('home');
}
public function horsecrap()
{
$this->template->build('home');
}
public function getting_to_know_crafty()
{
$this->template->append_metadata('<script type="text/javascript" src="' . base_url('assets/javascripts/game.getting_to_know_crafty.js') . '"></script>');
$this->template->build('home');
}
public function blow_up()
{
$this->template->append_metadata('<script type="text/javascript" src="' . base_url('javascripts/game.blow_up_the_balloons.js') . '"></script>');
$this->template->build('home');
}
}
/* End of file kingofhearts.php */
/* Location: ./application/controllers/kingofhearts.php */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment