Hi guys,
Is it possible to use volt syntax by code tracking?
For instanceļ¼ When I visit https://localhost/invo/
I guess phalcon operating process like this:
invo/.htaccess/public/.htaccess invo/app/IndexController.php->initialize()->indexAction()->views->index.volt->{{ content() }}->index/index.volt->{{ content() }}
.......I got lost.
There are many" {{ content() }}" , priority is vague.
https://github.com/phalcon/invo/tree/master/app/views
1.app/views/index.volt
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
{{ get_title() }}
{{ stylesheet_link('bootstrap/css/bootstrap.css') }}
{{ stylesheet_link('bootstrap/css/bootstrap-responsive.css') }}
{{ stylesheet_link('css/style.css') }}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Your invoices">
<meta name="author" content="Phalcon Team">
</head>
<body>
{{ content() }}
{{ javascript_include('js/jquery.min.js') }}
{{ javascript_include('bootstrap/js/bootstrap.js') }}
{{ javascript_include('js/utils.js') }}
</body>
</html>
app/views/index/index.volt
{{ content() }}
<div class="hero-unit">
<h1>Welcome to INVO</h1>
<p>INVO is a revolutionary application to create invoices online for free.
Receive online payments from your clients and improve your cash flow</p>
<p>{{ link_to('session/register', 'Try it for Free »', 'class': 'btn btn-primary btn-large btn-success') }}</p>
</div>
.|)