Created
January 21, 2011 13:50
-
-
Save lukemorton/789698 to your computer and use it in GitHub Desktop.
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 defined('SYSPATH') or die('No direct script access.'); | |
class Controller_Example extends Controller { | |
public function action_index() | |
{ | |
$this->request->response = new View_Example; | |
// or $this->response->body(new View_Example); in K3.1 | |
} | |
} |
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
<!doctype html> | |
<html> | |
<head> | |
<title>{{title}}</title> | |
</head> | |
<body> | |
<h1>{{title}}</h1> | |
</body> | |
</html> |
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 defined('SYSPATH') or die('No direct script access.'); | |
class View_Example extends Kostache { | |
public $title = 'Page title'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment