Site module interface
Warning: this page is not completed yet. Only some guidelines are presented here. Full documentation is underway.
Description
This is a very important module in CTLF. It is not required (the only required module is Mapper) and the framework should be functional without it, but nevertheless it is very important if you plan to build websites using the full framework potential.
The purpose of this module is to wrap your page HTML with full website design (think about logos, menus, newsboxes, etc.).
Configuration
These are elements of the $config['Site'] array:
- page_dir - directory where pages (that are loaded by index.php?page=page_name) are located.
- script_dir - directory where scripts (that are loaded by index.php?script=script_name) are located.
Interface
Standard methods:
- showError($msg) - displays error page. $msg can be message string or HTTP error code.
- showContent($content) - displays page. $content can be string or array
- showIndex() - displays website index (home) page
- showPage($page_name = NULL) - displays page from HTML file. $page_name can alternatively be read from $_REQUEST[page] if empty.
- showScript($script_name = NULL) - displays page from PHP script. $script_name can alternatively be read from $_REQUEST[script] if empty.
$Revision: 1.2 $, $Date: 2005/11/22 07:11:00 $
