예제 #1
0
 public function index()
 {
     $this->data['member_list'] = Example2::all('*', 10);
     //Blade::render('example/example', $this->data);
     Blade::render('example', $this->data);
 }
예제 #2
0
 public function index()
 {
     Blade::render('404', $this->data);
 }
예제 #3
0
 public function index()
 {
     Blade::render('example');
 }
예제 #4
0
 public function index()
 {
     Blade::render('welcome');
 }
예제 #5
0
 public function complex()
 {
     $memberList = DB::table('member')->limit(100)->get();
     Cache::store('member_list_cache', $memberList);
     Session::set('member_list', Cache::get('member_list_cache'));
     $this->data['member_list'] = Session::get('member_list');
     DB::beginTransaction();
     DB::insert('test', array('val1' => 'A', 'val2' => 'B'));
     $insert_id = DB::insertId();
     DB::update('test', 'test_id', $insert_id - 1, array('val1' => 'A2', 'val2' => 'B2'));
     DB::delete('test', 'test_id', $insert_id - 3);
     DB::commit();
     $sql = "SELECT * FROM member WHERE email = ? AND name LIKE ?";
     $this->data['member_list'] = DB::getAllQuery($sql, array('*****@*****.**', '%Elips%'));
     Blade::render('testing', $this->data);
 }
예제 #6
0
 public function index()
 {
     $this->data['member_list'] = Example::all('*', 10);
     $this->data['var'] = array('<?php echo "AAA";?>');
     Blade::render('example', $this->data);
 }