Browse files

Added sample entry point

  • Loading branch information...
1 parent 793ec7f commit 1399c6a38bb91d272081cf5c359f7df31e2798fd @Artazor Artazor committed Jun 6, 2012
Showing with 40 additions and 0 deletions.
  1. +21 −0 sample/.htaccess
  2. +19 −0 sample/index.php
View
21 sample/.htaccess
@@ -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]
View
19 sample/index.php
@@ -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.