Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $db = $this->testRepositpory->findAll()->toArray();
- $thumb = array();
- if (count($db) >0){
- foreach ($db as $key => $image){
- $thumb[] = $key;
- }
- $this->view->assign('thumb', $thumb);
- }
- $this->view->assign('images',$db);
- i want to put this two images side by side using only one cycle so the images matches with each other
- <f:for each="{images}" as="image" key="number" >
- <media:image image="{image.image}" alt="An image, AN IMAGE!!!" maximumWidth="400" />
- <img src="{f:uri.resource(resource: thumb)}" />
- <br />
- </f:for>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement