Skip to content

allynbauer/Condor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

The userdata_app.php file is meant to be where you might add data validation. So if you have a few url parameters and you want to get them from there, you could be all:
sys()->getData->method('key');

To get yourself validated info. In this way you (ideally) never directly access get or post data without making sure it's validated data.


To Document:
need htaccess; assumes apache
purpose of each folder
how to upgrade

To Do:
make paths that match a non-existant controller error
add error page handling
refactor lib to be only lib y

About

A very simple framework for PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published