> For the complete documentation index, see [llms.txt](https://prtechs-organization.gitbook.io/e2encrypt-frame-php/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://prtechs-organization.gitbook.io/e2encrypt-frame-php/controllers/new-controller.md).

# New Controller

<mark style="color:blue;">**src/Controller/HomeController.php**</mark>

```php
<?php
class Home extends Controller{
    public $defaultController = "index";

    public function index(){
        $this->view("home");
    }
    
}
```

<mark style="color:blue;">**src/Views/home.view\.php**</mark>

```
<h4>Hello!</h4>
```
