title: CakePHP: Define an image URL into a Variable
body: <p>I'm trying to define a variable for an Image URL which is something like this:</p>
  
  <p><code>http://MyWebSite.com/app/webroot/upload/foods/2/beef_wellington_thumb.jpg</code></p>
  
  <p>The number 2 digit in the link is an $id and also represents the folder number. The image file name is originally <code>beef_wellington.jpg</code>. But I have to display it using an additional underscore:<code>_thumb</code> for each image file name due to an upload component (plugin) I'm using in Cake. So how should I go about in defining a variable for that: e.g.</p>
  
  <p><code>$itemImageurl = "/app/webroot/upload/foods/".$id./$item['Food']['image'];</code></p>
  
  <p>What about the <code>_thumb</code> ? could we place it somewhere in the line of code above? </p>
  
  <blockquote>
    <p>UPDATE:</p>
  </blockquote>
  
  <p>Assuming I have changed the upload plugin so I can also add my original image file name in my folder as this:</p>
  
  <p><code>http://MyWebSite.com/app/webroot/upload/foods/2/beef_wellington.jpg</code></p>
  
  <p>without needing <code>_thumb</code></p>
  
  <p>How to write the correct variable, I'm not sure about this:</p>
  
  <p><code>$itemImageurl = "/app/webroot/upload/foods/".$id./$item['Food']['image'];</code></p>