Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
allynbauer committed Apr 12, 2010
1 parent 46fa2a6 commit d3ed917
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
21 changes: 19 additions & 2 deletions README
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
Condor is a real, real simple PHP framework.
So simple, I don't feel like explaining it right now.
Condor is a simple PHP framework.
Very simple.

To get it working you gotta change the base routes in two places:
index.php
.htaccess

It's pretty obvious.

Make controllers for your stuff. There are a few already, so you can see how it hooks together.

Add a flash message in a controller method like this:
sys()->flash->|name| = |str|;

Where |name| is anything (notice, error) and |str| is your error messages or whatever. It's all very exciting.
I got some CSS to make this blingier, but you can just try it and see what it makes and whatever yourself.

This isn't done yet, so don't come crying to me if you download it and it maxes out your credit cards or kills your rabbit or something.

2 changes: 2 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
=========================================
*/

define('WEB_ROOT', '/condor'); // NO TRAILING SLASH

require_once('lib/init.php');

// process the request URL
Expand Down
2 changes: 1 addition & 1 deletion lib/flash.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// (c) 2009 by Allyn Bauer <[email protected]>

class FlashHelper {
function __construct() {
// flashes need a default array to keep track of existing flashes
Expand Down
1 change: 0 additions & 1 deletion lib/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
ini_set('magic_quotes_runtime', 'off');

define('SYSTEM_ROOT', dirname(dirname(__FILE__)));
define('WEB_ROOT', '/condor'); // NO TRAILING SLASH

$dir = dirname(__FILE__);

Expand Down

0 comments on commit d3ed917

Please sign in to comment.