it's not really a problem as everything works wonder, but I wonder why there is an echo in both the controllers->afterroute (which invokes view->render) and the views->render themselves (which return nothing, so the echo in the controller doesn't look useful).
The code does this:
in Controller->afterroute:
echo $this->response->render();
in View->render()
echo \Template::instance()->render($this->template);
(returns nothing)
Is this a safeguard for custom Views?
Best whishes.
Hello,
it's not really a problem as everything works wonder, but I wonder why there is an echo in both the controllers->afterroute (which invokes view->render) and the views->render themselves (which return nothing, so the echo in the controller doesn't look useful).
The code does this:
in Controller->afterroute: echo $this->response->render();
in View->render() echo \Template::instance()->render($this->template); (returns nothing)
Is this a safeguard for custom Views? Best whishes.