Framework list
Filter
MVC
minimal
library
routing
toolkit
ajax
shortlist
all
Submit
Add a new framework
.include-once.org
Filter
MVC
minimal
library
routing
toolkit
ajax
shortlist
all
Submit
Add a new framework
| spawn | |
title![]() | Spawn Framework |
description![]() | simple construction ensures speed, efficiency and safety |
url![]() | http://spawnframework.com/ |
license![]() | BSDL |
version![]() | 2.1.5 |
release![]() | 2010 |
size![]() | 2736 |
language![]() | PHP |
documentation![]() | ☆☆☆☆☆ |
maturity![]() | development |
development![]() | open |
team![]() | single |
type![]() | MVC |
| spawn | |
coding.paradigm![]() | object-structured |
coding.names![]() | CamelCase |
coding.autoloader![]() | PSR-0 legacy |
coding.debug![]() | E_NOTICE |
abstraction.level![]() | ♦♦♦♢♢ explicit |
coding.unit_tests![]() | ![]() |
| spawn | |
modules.mvc![]() | ![]() |
modules.db![]() | ![]() |
modules.orm![]() | ![]() |
modules.crud![]() | ![]() |
modules.multidb![]() | ![]() |
modules.filedb![]() | ![]() |
modules.auth![]() | ![]() |
modules.cache![]() | ![]() |
modules.validate![]() | ![]() |
modules.filter![]() | ![]() |
modules.i18n![]() | ![]() |
modules.session![]() | ![]() |
modules.log![]() | ![]() |
modules.sandbox![]() | ![]() |
modules.benchmark![]() | ![]() |
modules.form![]() | ![]() |
modules.ajax![]() | ![]() |
modules.edp![]() | ![]() |
modules.plugins![]() | ![]() |
modules.dist![]() | ![]() |
modules.cli![]() | ![]() |
modules.scaffolding![]() | ![]() |
modules.rest![]() | ![]() |
| spawn | |
compatible.php![]() | php5.3 |
standard.html![]() | html5 |
compatible.app![]() | |
compatible.forks![]() | |
compatible.sql![]() | |
compatible.css![]() | |
compatible.plugin![]() | |
| spawn | |
security.db![]() | parameterized |
security.inputsanitization![]() | option |
security.outputescaping![]() | |
security.auth![]() | salted |
security.admin![]() | |
| spawn | |
mvc.type![]() | Passive-MVC |
| spawn | |
routing.type![]() | front controller |
routing.rewriterules![]() | ![]() |
routing.dispatch![]() | explicit URL mapping (regex) |
routing.responder![]() | class-method |
| spawn | |
model.type![]() | compound |
model.db![]() | ORM |
model.backend![]() | |
| spawn | |
view.type![]() | Template |
view.backend![]() | PHP |
view.collect![]() | assign |
view.output![]() | variables |
| spawn | |
controller.type![]() | processing |
controller.helper![]() | |
| spawn | |
configuration.type![]() | array |
configuration.store![]() | files |
configuration.format![]() | PHP |
| spawn | |
ajax.type![]() | |
ajax.library![]() | |
| spawn | |
util.upload![]() | ![]() |
util.session![]() | ![]() |
util.cookie![]() | ![]() |
util.pagination![]() | ![]() |
util.http![]() | |
util.url![]() | ![]() |
util.mime![]() | ![]() |
util.permission![]() | |
util.debug![]() | ![]() |
util.localization![]() | |
util.form![]() | objects |
| spawn | |
http.negotiation![]() | ![]() |
http.conditional![]() | ![]() |
util.xml![]() | ![]() |
util.rss![]() | ![]() |
util.zip![]() | ![]() |
util.mail![]() | ![]() |
util.gzip![]() | ![]() |
util.captcha![]() | ![]() |
util.dom![]() | ![]() |
util.markup![]() | ![]() |
util.pdf![]() | ![]() |
util.images![]() | ![]() |
util.wysiwyg![]() | ![]() |
util.webdav![]() | ![]() |
| spawn | |
util.sitemap![]() | ![]() |
util.pingback![]() | ![]() |
util.rpc![]() | ![]() |
service.twitter![]() | ![]() |
service.google![]() | ![]() |
service.facebook![]() | ![]() |
service.openid![]() | ![]() |
service.cardspace![]() | ![]() |
service.oauth![]() | ![]() |
service.opensearch![]() | ![]() |
service.geo![]() | ![]() |
service.paypal![]() | ![]() |
| spawn | |
forum_from_framework![]() | |
popular_apps![]() | |
big_websites![]() |
You can also update this entry, if you have more information.
Spawn is the framework for any developer who needs a light utility to work.
Controller:
namespace Controller;
//controller nameclass Home extends \Spawn\Controller
{
public function init()
{
//'I am init() method and I\'m start before action :-)'; $this
-> method = new \Model\Foo();
}
//first action public
function indexAction()
{
$this -> response = 'Hello World!';
}
//next action public
function testAction()
{
$this -> response = 'test!';
}
public function end()
{
$this -> method -> bar();
}
}
Model:
namespace Model;
class Hello
{
public function say($name)
{
return 'Hello '.$name.'!';
}
}
View:
namespace Controller;
use Spawn\View;
class Home extends \Spawn\Controller
{
//first action public
function indexAction()
{
$view = new View('home');
// if name not isset, view use controller and action name $view
-> body = new View(); //Home/index
//View use __toString to call render() $this
-> response = $view;
}
}
ORM:
$id = $this -> request -> get('id',0);
$news = Orm::factory('news') -> find($id);
$news -> title = 'new title';
$news -> body = 'new body';
$news -> author_id = 5;
$news -> save();//if not found record , insert it . Else - update :)
Other examples:
$news = Orm::factory('news') -> find($id);
if( $news->id ){
$news->view_count += 1;
$news->save();
}else{
throw new \Exception('News not found');
}
echo $news->body;
Add a Comment