fredwu/kohana-phamlp — pull request #6 by parshikov (2013-09-02 07:19:04+00:00)
Title: Template controller and view error

1. Actually, your `Controller_Haml` is a template controller.
2. When you write in an action

```php

class Controller_Welcome extends Controller_Haml_Template {
public function action_index()
{
// ...
$view = Haml::factory('index');
$view->data= "Some data";
```
you get the `Undefined variable $data` error in view

```php
// ...

```

If you use

```php
// ...
$view = Haml::factory('index');
$this->data= "Some data";
```
you get no error. Here `$this` is the template and it is incorrect approach.