묻고답하기

오픈소스 프로그램을 수정해서 쓰고 있었는데요, (수정은 제가 안했고요..,)
수정전 소스가 이거고요.....

foreach ($results as $result) {
    if ($result['image'] && file_exists(DIR_IMAGE . $result['image'])) {
     $this->data['product_images'][] = array(
      '+ 'preview' => $this->model_tool_image->resize($result['image'], 100, 100),
      'file'    => $result['image']
     );
    } else {
     $this->data['product_images'][] = array(
      'preview' => $this->model_tool_image->resize('no_image.jpg', 100, 100),
      'file'    => $result['image']
     );
    }
   }
  }

수정해서 쓰던 소스는 이거에요...(빨간부분이 추가됨)

  foreach ($results as $result) {
   
    if ($result['image'] && file_exists(DIR_IMAGE . $result['image'])) {
     $this->data['product_images'][] = array(
      '+ 'preview' => $this->model_tool_image->resize($result['image'], 100, 100),
      'file'    => $result['image'],       'product_color_id'    => $result['product_color_id']     

     );
    } else {
     $this->data['product_images'][] = array(
      'preview' => $this->model_tool_image->resize('no_image.jpg', 100, 100),
      'file'    => $result['image'],       'product_color_id'    => $result['product_color_id'] 
     );     }    }   }   $this->data['product_colors'] = array();   if (isset($product_info)) {    $results = $this->model_catalog_product->getProductColors($this->request->get['product_id']);      foreach ($results as $result) {         if ($result['color'] && file_exists(DIR_IMAGE . $result['color'])) {      $this->data['product_colors'][] = array(       'preview' => $this->model_tool_image->resize($result['color'], 30, 30),       'file'    => $result['color'],       'product_color_id'    => $result['product_color_id'],       'name'    => $result['name']      );     } else {      $this->data['product_colors'][] = array(       'preview' => $this->model_tool_image->resize('no_image.jpg', 30, 30),       'file'    => $result['color'],       'product_color_id'    => 0,       'name'    => ''           );
    }
   }
  }
  $this->data['product_sizes'] = array();   if (isset($product_info)) {    $results = $this->model_catalog_product->getProductSizes($this->request->get['product_id']);      foreach ($results as $result) {      $this->data['product_sizes'][] = $result['size'];    }

  }

그리고 저 오픈소스 플그램이 업데이트가 되어서요.. 저는 php를 잘 모르고 해서
문서를 서로 대조해서, 추가된 위치와 부분을 찾아 필요한데로 추가해서 쓰려고 했는데,
코딩 형식이 조금 바뀌엇더라구요....ㅜㅜ 업데이트 된 소스 는 ::

foreach ($results as $result) {
   $action = array();
   
   $action[] = array(
    'text' => $this->language->get('text_edit'),
    '+ 'href' => $this->url->link('catalog/product/update', 'token=' . $this->session->data['token'] . '&product_id=' . $result['product_id'] . $url, 'SSL')
   );
   
   if ($result['image'] && file_exists(DIR_IMAGE . $result['image'])) {
    $image = $this->model_tool_image->resize($result['image'], 40, 40);
   } else {
    $image = $this->model_tool_image->resize('no_image.jpg', 40, 40);
   }
 
   $product_specials = $this->model_catalog_product->getProductSpecials($result['product_id']);

   if ($product_specials) {
                $special = reset($product_specials);
                if(($special['date_start'] != '0000-00-00' && $special['date_start'] > date('Y-m-d')) || ($special['date_end'] != '0000-00-00' && $special['date_end'] < date('Y-m-d'))) {
                    $special = FALSE;
                }
            } else {
                $special = FALSE;
            }
 
        $this->data['products'][] = array(
    'product_id'       => $result['product_id'],
    'name'             => $result['name'],
    'model'            => $result['model'],
    'price'            => $result['price'],
    'special'          => $special['price'],
    'image'            => $image,    'quantity'         => $result['quantity'],
    'status'+ '           => ($result['status'] ? $this->language->get('text_enabled') : $this->language->get('text_disabled')),
    'selected'         => isset($this->request->post['selected']) && in_array($result['product_id'], $this->request->post['selected']),
    'action'           => $action


보니까 업데이트 버젼 코딩엔 키값(?) 주고 하는 부분의 형식이 바뀌고 한것 같은데..
'file'도 없고요... 두번째 소스에 빨간 부분의 내용을 이 업데이트된 부분에 추가해서 쓰고싶은데..
자비를좀 배풀어 주세요..!! ㅜㅜ

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
샤릉해 해외 접속시 빠른 호스팅 추천 해주세요. [2] 2009.02.09 by 샤릉해
dantes 설정오류좀 도와주세요. [3] file 2009.02.09 by dantes
kaki505 "권한이 없습니다." 페이지 설정 질문드립니다~ [2] 2009.02.09 by kaki505
동푸리 mysql 출력 문제입니다 file  
갈색눈빛 메인에 게시판으로 공지사항 만들기 관련 질문 [1] file 2009.02.09 by 지연아빠
꼬엥 첨부파일을 타서버에 저장하는방법은 어떻게 되나요ㅠ_ㅠ [1] 2009.02.09 by 주사위
박토치 회원가입 폼에서요... [8] 2009.02.09 by 비나무
양경모166 제로보드에서 댓글까지 검색가능한 스킨 형식이 있는지요? [1] 2009.02.09 by 라르게덴
제이엘 컨설팅 에러가 떠요 [1] 2009.02.09 by 비나무
오리74 페이지모듈에서 링크 오류 문의드립니다. [5] file 2009.02.09 by 노인철967
정성호736 초기 로그인 문제... (로그인 속도 30초이상) [1] 2009.02.09 by 백성찬
한초 관리자 비밀번호 바꾸기 [2] 2009.02.09 by 김영민
이효성646 게시판에 번호가 1번부터가아니라 끝번호가맨위로 올라왔는데요 [3] 2009.02.09 by 백성찬
최소영329 파일용량 설정및 페이지에 나오게 하는 방법? [2] 2009.02.09 by ㅡㅢ
므리바 게시판 초기 로그인 문제... [1] 2009.02.09 by 정성호736
네스퀵투 쇼핑몰 창업에 대한 질문이요. [1] 2009.02.09 by 비나무
김찬년 로그인이 되지 않는다는 답변을 받았습니다. [4] 2009.02.09 by 비나무
듀리짱 게시판 글 및 첨부파일 저장 위치 [1] 2009.02.09 by 백성찬
듀리짱 게시판에 쓰여진 글의 순서 [2] 2009.02.09 by 듀리짱
청개굴이 어떡하면 메인화면을 세밀하게 구성할수 있을까요..? [4] 2009.02.09 by 데미안k
식신 플래시 메뉴 만들었는데, 새창으로 안열리게 도와주세요 [2] 2009.02.09 by 느까끼
연하377 게시글을 쓰면 글자가 잘려요. [2] file 2009.02.09 by 궁금이2
질문 레이아웃 양쪽 색상에 대한 질문입니다. [2] file 2009.02.09 by 질문
dantes 갤러리 사진등록후 백지현상 [2] 2009.02.09 by dantes
데미안k 글쓰기 글씨가 다 깨지네요 [4] 2009.02.09 by 데미안k
궁금이 마이그레이션 후 최근 게시물 순서. [1] 2009.02.09 by 비나무
민기 이지웍 에디터에서 설문조사 컴포넌트 (poll_maker)가 활성화되지 않습니다 [3] 2009.02.09 by 22222
♡不明♡ 일정 시간 지나면 댓글 못달게... [3] 2009.02.09 by ♡不明♡
732 다운로드 랭킹 위젯에서 게시물제목포함해서 표시하고 싶습니다. file  
아리까또 특수문자 제목 사진이 엑박으로 등록됩니다. [2] file 2009.02.09 by 박토치