Exemplo n.º 1
0
 public function vistaEditar($id)
 {
     //Me quedo con el item, buscando por id
     $html = TextoHtml::buscar($id);
     if ($html) {
         $this->array_view['item'] = $html->item();
         $this->array_view['html'] = $html;
         return View::make('item.' . $this->folder_name . '.editar-html', $this->array_view);
     } else {
         $this->array_view['texto'] = Lang::get('controllers.error_carga_pagina');
         return View::make($this->project_name . '-error', $this->array_view);
     }
 }