예제 #1
0
 public function getIndex()
 {
     $videos = SFVideos::all();
     // $videos = SFVideos::where('category','=','1')->get();
     $args = array('route' => $this->route, 'videos' => $videos);
     return View::make('backend.videos.index')->with($args);
 }
예제 #2
0
 public function getVideos($id)
 {
     $args = array('news' => SFNews::find($id), 'videos' => SFVideos::all(), 'route' => $this->route);
     return View::make('backend.news.videos')->with($args);
 }
예제 #3
0
 public function getIndex()
 {
     $videos = SFVideos::all();
     $args = array('videos' => $videos, 'route' => self::$route);
     return View::make('frontend.video.index')->with($args);
 }