Page MenuHomeGitPull.it

class-Page.php
No OneTemporary

Authored By
Unknown
Size
686 B
Referenced Files
None
Subscribers
None

class-Page.php

<?php
/**
* A website page
*
* It's useful to print the header, the footer, and who knows
*/
class Page {
/**
* Custom arguments
*
* @var array
*/
protected $args;
/**
* Constructor
*
* @param array $args Custom arguments
*/
public function __construct( $args = [] ) {
$this->args = $args;
$this->prepare();
}
/**
* Do something at startup
*/
protected function prepare() {
// actually nothing. You can override this!
}
/**
* Print the site header
*/
public function printHeader() {
template( 'header', $this->args );
}
/**
* Print the site footer
*/
public function printFooter() {
template( 'footer', $this->args );
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Nov 19, 00:59 (14 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2263603
Default Alt Text
class-Page.php (686 B)

Event Timeline