What you want to do is direct each adoptable link to the same Iframe, not create an Iframe for each adoptable.
Inside the for cycle, you just need to add that target to the link, and don't forget to put a / before levelup ( like /levelup/click/{$adopt->getAdoptID())
Outside the cycle, for example, you add the iframe, it can have an empty source
$document->add($daycareTable);
$document->add(new Comment("<iframe name='iframe' src=''></iframe>"));
__________________
 
asp.net stole my soul.
|