Skip to content

Commit

Permalink
got basic hello world route working
Browse files Browse the repository at this point in the history
  • Loading branch information
arroyo committed Mar 6, 2012
1 parent bd3ed02 commit a0d9141
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 7 deletions.
Binary file modified www/.DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions www/app/config/contexts.inc
@@ -0,0 +1,2 @@
// base theme
// available contexts
2 changes: 1 addition & 1 deletion www/app/config/modules.inc
Expand Up @@ -31,4 +31,4 @@
"active": 0
}
]
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 6 additions & 2 deletions www/erdiko/bootstrap.php
@@ -1,10 +1,14 @@
<?php
$webroot = dirname(dirname(__DIR__));
$base = dirname(dirname(__DIR__));
$webroot = $base.'/www';

// Core
// Static functions / Factories
require_once $webroot.'/Erdiko.php';

// Libraries
require_once $webroot.'/libraries/ToroPHP/toro.php';

// Core
require_once $webroot.'/erdiko/core/Handler.php';

// Modules
10 changes: 6 additions & 4 deletions www/erdiko/core/Handler.php
Expand Up @@ -2,14 +2,16 @@
/**
*
*/
namespace "\erdiko\core\Handler.php";
namespace erdiko\core;

class Handler extends \ToroHandler
{
// public function __construct() { }

public function get($param)
public function get($param = null)
{
error_log("Hello World!");

echo "Hello World!";
}
}
}
9 changes: 9 additions & 0 deletions www/erdiko/theme/default/templates/README.txt
@@ -0,0 +1,9 @@
naming conventions

Available Template Options

home.phtml - Home Page
layout-1.phtml - 1 Column Layout
layout-2.phtml - 2 Column Layout
layout-3.phtml - 3 Column Layout

2 changes: 2 additions & 0 deletions www/erdiko/theme/default/theme.inc
@@ -0,0 +1,2 @@
// Set all defaults here

0 comments on commit a0d9141

Please sign in to comment.