コード例 #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
ファイル: Error404.php プロジェクト: jokopurnomoa/elips-php
 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);
 }