praiadeseselle/site/templates/layout/init.php

24 lines
620 B
PHP

<?php namespace ProcessWire;
/**
* Initialize variables output in _main.php
*
* Values populated to these may be changed as desired by each template file.
*/
/** @var Page $page */
/** @var Pages $pages */
include_once("./layout/func.php");
$start = microtime(true);
$inicio = $pages->get('/');
$xestion = $pages->get('/gestion');
$configuracion = getConfig($xestion);
$titulo = $page->title . ' - ' . $configuracion['sitio_nome'];
/** What happens after this?
* ------------------------
* 1. ProcessWire loads your page's template file (i.e. basic-page.php).
* 2. ProcessWire loads the _main.php file
*/