/** * @name get * @description get an item * @param {int} $id */ private function get($id) { // items class instance $items = new Items(); // get the item if ($itemData = $items->get($id)) { return $this->response($itemData, ''); } return $this->response('', "Could not get the item {$id}", true); }
public function getShowArt() { $title = "Articulos"; $art = Items::get(array('item.item_cod', 'item.item_nomb', 'item.id', 'item.deleted')); return View::make('admin.showArt')->with('title', $title)->with('art', $art); }