DavidDeutsch/redbean-instance

不是使用RedBean外观,而是使用其实例。

dev-master 2014-01-01 17:47 UTC

This package is not auto-updated.

Last update: 2024-09-28 15:06:04 UTC


README

在许多情况下,一个单体外观是不理想的。你需要实例。

这里有一个实例。

用法

// Include or autoload the files in this library

$db = new RedBean_Instance();

// All static method calls are regular method calls now
$project = $db->dispense('project');

$project->name = 'Hello';

$db->store($project);