Created
September 9, 2012 09:52
-
-
Save martisj/3683525 to your computer and use it in GitHub Desktop.
controller
This file contains 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 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