Skip to content

Commit

Permalink
Add two more actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemorton committed Oct 20, 2011
1 parent a5e7c5e commit 6b2a84c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions application/classes/controller/example.php
Expand Up @@ -16,5 +16,23 @@ public function action_index()
$view = new View('example', new View_Example);
$this->response->body($view);
}

public function action_partial()
{
$view = new View('example', new View_Example);
$view->template()->partial('header', 'header');
$this->response->body($view);
}

public function action_oldschool()
{
$view = new View(
new Template_PHP('oldschool'),
array(
'page_title' => 'An example title',
'content' => '<p>This is a para.</p>',
));
$this->response->body($view);
}

}

0 comments on commit 6b2a84c

Please sign in to comment.