Reply to ANN: barebones mvc framework version 0.9

Your name:

Reply:


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)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация