public function home() { $channels = LogMessages::channels(); $tells = Tells::recent(); $karmas = Karma::highscore(); return compact('channels', 'tells', 'karmas'); }
public function migrate() { $ini = parse_ini_file('/Users/mariuswilms/Code/lithium/lithium_site/app/resources/bot/tells.ini'); foreach ($ini as $key => $value) { $item = Tells::create(['created' => date('Y-m-d H:i:s')] + compact('key', 'value')); $item->save(); } }
public function testSaveDeleteFind() { $result = Tells::save(array('li' => 'the most rad php framework')); $this->assertTrue($result); Tells::delete('li'); Tells::reset(); $result = Tells::find('li'); $this->assertFalse($result); }
public function index() { $tells = Tells::find('all'); return compact('tells'); }