예제 #1
0
 /**
  *
  * @param $sizeId int
  * @return nothing
  * @author Tremor
  */
 public function size($sizeId = 0)
 {
     $this->data['active'] = __FUNCTION__;
     if (isset($sizeId) && !empty($sizeId) && is_numeric($sizeId)) {
         $this->data['size'] = Size::find($sizeId);
         return View::make('admin.size.one')->with($this->data);
     } else {
         $this->data['sizeList'] = Size::get();
         return View::make('admin.size.list')->with($this->data);
     }
 }