Exemplo n.º 1
0
 public function getIndex()
 {
     $arquivos = SFArquivos::all();
     // $arquivos = SFArquivos::where('category','=','1')->get();
     $args = array('route' => $this->route, 'arquivos' => $arquivos);
     return View::make('backend.arquivos.index')->with($args);
 }
Exemplo n.º 2
0
 public function getArquivos($id)
 {
     $args = array('news' => SFNews::find($id), 'arquivos' => SFArquivos::all(), 'route' => $this->route);
     return View::make('backend.news.arquivos')->with($args);
 }