title: How to display an image and edit the image using cakephp
body: <p>Actually i am trying to dispaly an image in frontend nut it is displaying only name while iam fetching the records from databaseWhile uploading the image iam saving the images in one folder.Here is my code.</p>
  
  <p>Controller:</p>
  
  <pre><code> public function index() {
      $this-&gt;paginate = array(
          'limit' =&gt; 5,
  
      );
      $users = $this-&gt;paginate('User');
      $this-&gt;set(compact('users'));
  }
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>&lt;div class="users form"&gt;
  &lt;h1&gt;Users&lt;/h1&gt;
  &lt;table&gt;
  &lt;thead&gt;
      &lt;tr&gt;
          &lt;th&gt;&lt;?php echo $this-&gt;Paginator-&gt;sort('image','Images');?&gt;&lt;/th&gt;
          &lt;th&gt;Actions&lt;/th&gt;
      &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;                     
      &lt;?php $count=0; ?&gt;
      &lt;?php foreach($users as $user): ?&gt;              
      &lt;?php $count ++;?&gt;
      &lt;?php if($count % 2): echo '&lt;tr&gt;'; else: echo '&lt;tr class="zebra"&gt;' ?&gt;
      &lt;?php endif; ?&gt;
  
          &lt;td&gt;&lt;?php echo  $user['User']['image']; ?&gt;&lt;/td&gt;
  </code></pre>