Skip to content
Browse files

Example minimal stub app

  • Loading branch information...
1 parent 17d8e3b commit af78b89d73661219a2db70c0e2ca77a185ad4ff6 @jwheare committed Mar 4, 2011
Showing with 33 additions and 1 deletion.
  1. +3 −1 README
  2. +5 −0 stub/conf/conf.php
  3. +11 −0 stub/template/_page/home.tpl.php
  4. +14 −0 stub/template/error.tpl.php
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>

0 comments on commit af78b89

Please sign in to comment.
Something went wrong with that request. Please try again.