Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Example minimal stub app

  • Loading branch information...
commit af78b89d73661219a2db70c0e2ca77a185ad4ff6 1 parent 17d8e3b
@jwheare authored
View
4 README
@@ -58,7 +58,9 @@ FILE OVERVIEW:
apache-vhost.conf // apache virtualhost configuration
-app/ // Example app
+stub/ // Minimal stub app
+
+app/ // Full example app
|
|-- conf/ // Conf
| --- conf.php // global conf
View
5 stub/conf/conf.php
@@ -0,0 +1,5 @@
+<?php
+
+define('SITE_NAME', 'Borax Example App');
+define('SITE_EMAIL', 'you@example.com');
+define('HOST_NAME', 'an.example.com');
View
11 stub/template/_page/home.tpl.php
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title><?php out(SITE_NAME); ?></title>
+ </head>
+ <body>
+ <p>Stub home page</p>
+ </body>
+</html>
View
14 stub/template/error.tpl.php
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title><?php out($title . " | " . SITE_NAME); ?></title>
+ </head>
+ <body>
+ <h2><?php out($title); ?></h2>
+ <?php if ($message): ?>
+ <p><?php echo linkify(safe($message)); ?></p>
+ <?php endif; ?>
+ </body>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.