Skip to content

Commit

Permalink
update the README.md documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
J. Rodriguez Ravelo committed Aug 9, 2011
1 parent a649d17 commit 80d8c0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -28,20 +28,20 @@ Installation
1. `git submodule add https://ThePixelDeveloper@github.com/ThePixelDeveloper/kohana-twig.git modules/twig`
2. `cd modules/twig && git submodule update --init`
3. Enable twig in your bootstrap.php file
4. Extend `Controller_Template_Twig`
4. Extend `Controller`

Usage
-----

Pretty similar to using the Controller\_Template class.

class Controller_Example extends Controller_Template_Twig
class Controller_Example extends Controller
{
// Template names are generated automatically if not specified. So this
// action would map to: example/index.html
public function action_index()
{
$this->template->variable = "Hello World";
$this->variable = "Hello World";
}
}

Expand Down

0 comments on commit 80d8c0d

Please sign in to comment.