(04-08-2023, 04:59 PM)kenjis Wrote: I think if you use Twig, the debug comments will not be added.
And these are not added in production environment.
If you don't need them in development environment.
PHP Code:
view('foo/bar', $data, ['debug' => false]);
I use twig and debug comments are displayed!
To render view, i use $this->twig->render
PHP Code:
return $this->twig->render('bookmark/index',$data, ['debug' => false]);
does not change a thing
And what about pagination ?
code of app\Views\Pager\pagination.twig is diplayed between <!-- DEBUG-VIEW START ... and <!-- DEBUG-VIEW ENDED