public function get() { $loot = new LootModel(); // Fetch All Items $this->items = $loot->all(); // Fetch Types $this->types = $loot->types(); // F3::set('NOTIFY.tip', "Items are sorted alphabetically by their parent, then by descending rarity and level."); $this->navigation['/loot/']['selected'] = true; $this->render('lootdirectory.php'); }
public function loot() { $loot = new LootModel(); $this->loot = $loot->all(); echo json_encode($this->loot); }