Jeff PHP framework  0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
page.controller.php
Go to the documentation of this file.
00001 <?php
00028 class pageController extends controller {
00029         
00033         private $_white_list = array("credits");
00034 
00040         function __construct() {
00041 
00042                 parent::__construct();
00043 
00044                 $this->_cpath = dirname(__FILE__);
00045 
00046         }
00047         
00053         public function index() {
00054                 return null;
00055         }
00056 
00065         public function view($id=null) {
00066 
00067                 $id = $id ? $id : cleanInput('get', 'id', 'string');
00068 
00069                 if(!in_array($id, $this->_white_list)) header("Location: ".ROOT);
00070 
00071                 $this->_view->setTpl($id);
00072                 $this->_view->assign('registry', $this->_registry);
00073 
00074                 return $this->_view->render();
00075         
00076         }
00077 
00078 
00079 }
00080 
00081 ?>