예제 #1
0
 public function submit_search()
 {
     $var = array('query' => Input::get('search'));
     $currentquery = Session::put('searchstate', $var['query']);
     $state = Datadom::where('article', 'like', '%' . $var['query'] . '%')->take(10)->get();
     if ($state) {
         return Redirect::to('search')->with('datadom', $state)->with('query', $currentquery);
     } else {
         return Redirect::to('/');
     }
 }
예제 #2
0
 public function get_advance_classifying()
 {
     $geturl = Datadom::distinct()->select('domain')->groupBy('domain')->lists('domain');
     return View::make('admin.advance.classifying')->with('geturl', $geturl);
 }