Esempio n. 1
0
 public function home()
 {
     $channels = LogMessages::channels();
     $tells = Tells::recent();
     $karmas = Karma::highscore();
     return compact('channels', 'tells', 'karmas');
 }
Esempio n. 2
0
 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();
     }
 }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 public function index()
 {
     $tells = Tells::find('all');
     return compact('tells');
 }