I'm creating a action in one of my phalcon controller which will be used to generate a print version of a page. Here is my print.volt layout:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Print</title>
</head>
<body>
<!-- Begin page content -->
<div class="container">
{% block content %}{% endblock %}
</div>
</body>
</html>
And my view:
{% extends "layouts/print.volt" %}
{% block content %}
HERE
<script type="text/javascript">
window.print();
</script>
{% endblock %}
It is working, but my problem is that the content generated is inserted inside another layout that has the {{ content() }}
tag. At the end O get a page with all the website menus, my print.volt and my view. I would like to know how can I get just the view inserted inside the print.volt, without the master layout. How can I disable this behavior?
Thanks for any help!