Skip to content

Commit

Permalink
Example minimal stub app
Browse files Browse the repository at this point in the history
  • Loading branch information
jwheare committed Mar 4, 2011
1 parent 17d8e3b commit af78b89
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions 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');
11 changes: 11 additions & 0 deletions 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>
14 changes: 14 additions & 0 deletions 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.