This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Testing</title> | |
</head> | |
<body> | |
<h1>Testing</h1> | |
<p>Hello <foobar>! |
This file contains hidden or 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_Work extends Controller { | |
private $view; | |
private $content; | |
public function before() | |
{ | |
// parent::before(); |
This file contains hidden or 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 | |
class Kostache_Layout_Base extends Kostache_Layout | |
{ | |
protected $_options_title_selected = null; | |
/** | |
* Returns an options list of titles. | |
* | |
* @return array |
This file contains hidden or 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 Kostache_Layout extends Kohana_Kostache_Layout { | |
public $app_id; | |
public $page_id; | |
public function charset() | |
{ |
This file contains hidden or 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 Kostache_Layout extends Kohana_Kostache_Layout { | |
public $app_id; | |
public $page_id; | |
public function charset() | |
{ |
This file contains hidden or 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 hidden or 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.'); | |
/** | |
* Mustache templates for Kohana. | |
* | |
* @package Kostache | |
* @category Base | |
* @author Jeremy Bush <[email protected]> | |
* @author Woody Gilk <[email protected]> | |
* @copyright (c) 2010-2011 Jeremy Bush | |
* @copyright (c) 2011 Woody Gilk |
This file contains hidden or 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.'); | |
abstract class Controller_SiteLayout_Base extends Controller { | |
public $template = 'layout/base/page'; | |
public $auto_render = TRUE; | |
/** | |
* The before() method is called before your controller action. |
This file contains hidden or 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 Request extends Kohana_Request { | |
public function uri(array $params = null) | |
{ | |
if ($params === NULL) | |
{ | |
return parent::uri(); | |
} |
This file contains hidden or 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 | |
// Excerpt from bootstrap.php | |
Kohana::init( | |
array( | |
'base_url' => '/', | |
'index_file' => '', // Important | |
) | |
); |