Advertisement
Guest User

thumb

a guest
Aug 31st, 2012
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. $db = $this->testRepositpory->findAll()->toArray();
  2.  
  3. $thumb = array();
  4. if (count($db) >0){
  5.  
  6. foreach ($db as $key => $image){
  7. $thumb[] = $key;
  8. }
  9. $this->view->assign('thumb', $thumb);
  10. }
  11.  
  12. $this->view->assign('images',$db);
  13.  
  14. i want to put this two images side by side using only one cycle so the images matches with each other
  15.  
  16.  
  17. <f:for each="{images}" as="image" key="number" >
  18.  
  19.  
  20. <media:image image="{image.image}" alt="An image, AN IMAGE!!!" maximumWidth="400" />
  21. <img src="{f:uri.resource(resource: thumb)}" />
  22.  
  23. <br />
  24. </f:for>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement