Rapid Engine
PHP Micro Framework being used for a small social network project.
Goals are:
- As unobtrusive as possible, stay out of the developer's way and don't dictate program flow.
- As little 'boiler plate' code as possible inside the application.
- All code, no XML or command line tools.
//implemented
$RapidEngine->DefineAction( '/path', 'SomeClass');
$RapidEngine->DefineAction( '/path', 'SomeClass->SomeMethod');
$RapidEngine->DefineAction( '@404', 'SomeClass->NotFoundMethod'); //404 handler
//to be implemented
$RapidEngine->DefineAction( '/path', 'SomeFunction()');
$RapidEngine->DefineAction( '/path', function() { ...some code... });
Database-based session handling is included in the framework. This is the CREATE statement for the sessions table.
CREATE TABLE `sessions` (
`session_id` VARCHAR(100) NOT NULL DEFAULT '',
`value` LONGTEXT NULL,
`date_created` DATETIME NULL DEFAULT NULL,
`last_modified` DATETIME NULL DEFAULT NULL,
PRIMARY KEY (`session_id`)
)
COLLATE='latin1_swedish_ci'
ENGINE=InnoDB;
Session values are read/written using the standard $_SESSION superglobal variable.