Hello, I made a dynamic robots.txt controller and I have this code:
public function robotsAction()
{
$this->view->disable();
$this->response->setHeader("Content-Type", "text/plain");
$this->response->setContent("User-agent: *");
$this->response->send();
}
Problem is that in errorlog I see: "2016/10/25 22:21:47 [error] 22649#0: 9295 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined variable: location in /var/www/cache/volt/_var_www_main_app_views_index.volt.php on line 223"
So, view is still processed but not rendered, is any way to disable this ? Thanks!