| 
	
 | 
 Posted by jemptymethod on 07/28/07 18:52 
BareBones is a one-file, no-configuration, MVC framework for PHP5, 
weighing in at just 60 lines of code (excluding comments) 
 
Project: http://code.google.com/p/barebonesmvc-php/ 
 
Source: http://barebonesmvc-php.googlecode.com/files/barebones.lib-0.9.php 
 
Usage: 
   * 
   * 
require('barebones.lib.php');                                                 // 
1) require 
   * 
   * class DemoController extends AbstractBareBonesController {// 2) 
extend 
   *   function applyInputToModel() 
{                                           // 3) implement 
   *     $mto = new BareBonesMTO('barebones.tpl.php');             // 
4) instantiate 
   *     $mto->setModelValue('message', 'bare bones demo');      // 5) 
assign 
   *     session_start(); $_SESSION['preserved'] = 
1;                 // 6) preserve 
   *     return 
$mto;                                                                // 
7) return 
   *   } 
   * } 
   * 
   * DemoController::sendResponse(new DemoController());     // 8) 
send 
 
"A designer knows he has achieved perfection not when there is nothing 
left to add, but when there is nothing left to take away." 
(Antoine de Saint-Exupery)
 
  
Navigation:
[Reply to this message] 
 |