title: fat model and skinny controller design confusion between the controller method and model method
body: <p>i'm newbie in MVC (using codeIgniter as my example) and i have read MVC fat model and skinny controller for like 3 times, what i got :</p>
  
  <ul>
  <li>model does the hardwork while controller calls the model and passes the data to be rendered by view</li>
  </ul>
  
  <p>but i have one confusion , example i have an admin page that would delete product data in the db, i would have this codes (using codeIgniter):</p>
  
  <pre><code>public function deleteProduct($id = '')
      {
          if( is_digit($id))
          {
              $this-&gt;load-&gt;model('productModel');
              $this-&gt;productModel-&gt;deleteById($id);
  
              //oops product has images in another DB table and in server, so i need to delete it
              $success = $this-&gt;_deleteProductImages($id);
          }
          else
          {
              //redirect because of invalid param
          }
  
              //if success TRUE then load the view and display success
              //else load the view and display error
      }
  
  
  protected function _deleteProductImages($productId)
  {
          $this-&gt;load-&gt;model('productModel');
  
          //return array of images path
          $imgs = $this-&gt;productModel-&gt;getImagesPath($productId);
  
          // after i got the imgs data, then delete the image in DB that references to the $productId
          $this-&gt;productModel-&gt;deleteImage($productId);
          foreach($imgs as $imgPath)
          {
              if(file_exists $imgPath) unlink($imgPath);
          }
  }
  </code></pre>
  
  <p>my question is :</p>
  
  <p>in the concept of thin controller and fat model, should i move the method <code>_deleteProductImages($id)</code> to my productModel or should i leave it like that? if you have another better approach then please guide me here</p>