We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]

public
Description: A simple php class that can be used to build an entire web application framework
Homepage: http://72squared.com/scratchpad/
Clone URL: git://github.com/72squared/grok-php.git
updatng the readme file to match the new api.
John Loehrer (author)
Thu Jun 12 21:14:54 -0700 2008
commit  3b0e46398ff1593d1c5a759931eeb5a638003c81
tree    b2b1316fa715ea9d1b0ea4a49fec8e2951f8b6c6
parent  7fd4cbc0b0d0438c41624d4c8258d0a1c601161f
0
...
24
25
26
27
 
28
29
 
30
31
32
...
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
...
24
25
26
 
27
28
 
29
30
31
32
...
40
41
42
 
 
 
 
 
 
 
 
 
43
44
45
0
@@ -24,9 +24,9 @@ DESCRIPTION
0
     organized and reusable library of processing instructions.
0
     here is a simple example:
0
         
0
- $output = Grok::instance()->dispatch('test');
0
+ $output = Grok::instance()->dispatch('/path/to/file.php');
0
         
0
- This command would find a file in the current working directory named test.php and include it.
0
+ This command would find a file and include it.
0
     Each include becomes the body of an anonymous function.
0
     
0
     Because grok is a container, i can assign stuff to a grok. These become arguments to the include.
0
@@ -40,15 +40,6 @@ DESCRIPTION
0
         
0
     because dispatch also returns the response from the included file, the dispatch method can act
0
     just like a function.
0
-
0
-
0
- One important thing to note about dispatch. Grok allows you to always use relative paths to
0
- files. It tracks what directory you are currently in according to the current working directory.
0
- when you dispatch another grok, it changes the working directory of the grok framework to the
0
- dispatched file, so that the included file can dispatch other groks as well using a relative
0
- path.
0
-
0
- Take a look at some of the examples included in this project to see what I mean.
0
 
0
 DEPENDENCIES
0
     Grok was built for php5 or greater. To use Grok, just include the single grok.php file at the

Comments

    No one has commented yet.