Skip to content

Commit

Permalink
Added sample entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
Artazor committed Jun 6, 2012
1 parent 793ec7f commit 1399c6a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
21 changes: 21 additions & 0 deletions sample/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
allow from all

<Files ~ "class\.yml$">
Order allow,deny
Deny from all
</Files>

<Files ~ "\.php$">
Order allow,deny
Deny from all
</Files>

<Files ~ "^index.php$">
Order allow,deny
allow from all
</Files>

RewriteEngine On
RewriteRule .*\.git/.* - [F]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L]
19 changes: 19 additions & 0 deletions sample/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?

if(!class_exists('Oxygen')) {
require('oxygen/oxygen.class.php');
$o = new Oxygen('C:\\tmp\\oxygen-cache-v1.0');
$o->run(basename(__FILE__));
}

$o->loadClass('Oxygen_');
$r = $scope->Oxygen_Router('a{x:int}b',array('A','B','C'));

foreach($r as $x => $y) {
echo "$x";
}

$o->compileAssets();


?>

0 comments on commit 1399c6a

Please sign in to comment.