PHP Classes
elePHPant
Icontem

File: tests/-app-/views/hello.twig

Recommend this page to a friend!
  Classes of Wolfy-J  >  spiral  >  tests/-app-/views/hello.twig  >  Download  
File: tests/-app-/views/hello.twig
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: spiral
Modular Web application development framework
Author: By
Last change:
Date: 10 months ago
Size: 1,124 bytes
 

Contents

Class file image Download
{% extends "layouts/layout.twig" %}

{% set git = 'https://github.com/spiral' %}

{% block title %}[[Welcome to Spiral]]{% endblock %}

{% block head %}
    {{ parent() }}
    <link rel="stylesheet" href="@{basePath}resources/styles/welcome.css"/>
{% endblock %}

{% block body %}
    <div class="wrapper">
        <div class="placeholder">
            {# Local, original one is slow to load. %) #}
            <a href="http://twig.sensiolabs.org/" target="_blank">
                <img src="@{basePath}resources/images/twig-logo.png" style="width: 30%;"/>
            </a>

            <h2>[[Welcome to Spiral Framework]]</h2>

            {% include 'partials/links.twig' %}

            <div style="font-size: 12px; margin-top: 10px;">
                [[This view file is located in]]
                <a href="{{ git }}/application/blob/master/app/views/hello.twig">app/views/hello.twig</a>
                [[and rendered by]] <b>Controllers\HomeController</b>.
            </div>
        </div>
    </div>

    <div>
        Timezone: {{ spiral('Spiral\\Core\\Core').getTimezone().getName() }}
    </div>
{% endblock %}