PatrickLouys / no-framework-tutorial

A small tutorial to show how to create a PHP application without a framework.
MIT License
1.53k stars 188 forks source link

Chapter 09 - Variable name mismatch #38

Closed oneum-zz closed 8 years ago

oneum-zz commented 8 years ago

Hi there! In chapter 09 last proposed change in Homepage controller is

Now you can go back to your Homepage controller and change the render line to $content = $this->renderer->render('Homepage', $data);

and next line we have reference to antoher variable

$this->response->setContent($html);

Should be:

$html =$this->renderer->render('Homepage', $data);`
$this->response->setContent($html);

Anyway great tutorial, vote for an ORM/DBAL to be explained as well.