no-template-php
Project home
If you were registered and logged in, you could join this project.
Description
project mission: create a large collection of php classes that know how to render HTML thus freeing the developer from having to provide templates.
project background: creating a clear separation between websites and webapplications this project is for the latter. Since every HTTP connection is a javascript POST request to the same index.php page, it would not be very good for websites wanting good search engine rankings. This framework is like writing a GUI desktop app that just happens to run in a browser.
project plans: through an example application that uses this framework, demonstrate that templates are best for websites, and completely superfluous for a webapplication.
The only page the browser ever hits is index.php which looks like this:
<?php
require_once('DemoApp.php');
session_start();
if ($_SESSION['app']) {
$_SESSION['app']->handleEvents();
$_SESSION['app']->render();
}
if (!$_SESSION['app']) {
$_SESSION['app'] =& new DemoApp();
$_SESSION['app']->render();
}
?>