An MVC Web Framework in C++
Note: This project is in development infancy
The CGI core is functionality that handles low-level components of a CGI (Common Gateway Interface) system, HTTP functionality and basic web application features.
The view layer will be handled as nested partials with token replacement.
Checkout the files and run the script build
. This will create an index.cgi file which should be placed into the folder web
, which is the apache webroot.
Note that the .htaccess file in the web directory should have the following directive:
Options +ExecCGI
AddHandler cgi-script cgi
Currently this script in bin/index.cpp shows an example of how to set up the environment, set cookies, store sessions, etc. but doesn't really do a whole lot as far as the framework goes. Eventually we plan to have a router so that all the application code will be handled through index.cgi.