-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
33 lines (25 loc) · 771 Bytes
/
README
File metadata and controls
33 lines (25 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
AetherORM
Database and QB usage:
<?php
require 'Config.php';
spl_autoload_register('Config::autoLoad');
$db = AetherDatabase::instance('prisguide');
$result = $db->select('id, title')->from('manifestation_view')->limit(10)->get();
print_r($result->asArray());
?>
For more usage examples please check out the Kohana documentation:
http://docs.kohanaphp.com/libraries/database
ORM usage:
<?php
require_once('Config.php');
spl_autoload_register('Config::autoLoad');
class PersonModel extends AetherORM {
protected $db = 'test_mysql';
}
$person = AetherORM::factory('person');
$person->first_name = 'Jadda';
$person->sur_name = 'Masa';
$person->save();
?>
For more usage examples please check out the Kohana documentation:
http://docs.kohanaphp.com/libraries/orm