Hello, I can not solve the problem. There is a piece of code that does not work. what is written inside the img echo tag does not work. The first php request creates a link. When you click on the image, it opens in a large size. How else can you write this echo?

<?php echo Helper_HTML::file_anchor( Modules_Board_Controllers_Index::PATH_VIEW_NORMAL.$this -> Ad -> ad_foto, '<img style="background: url(<?php echo Modules_Board_Controllers_Index::PATH_VIEW_THUMB.$this -> Ad -> ad_foto ?>)">' ) ?> 
  • edit the question label, add the framework tag - Kirill Korushkin

1 answer 1

If I understand correctly, it should be so

 $foto = $Modules_Board_Controllers_Index::PATH_VIEW_NORMAL.$this->Ad->ad_foto; $thumb = $Modules_Board_Controllers_Index::PATH_VIEW_THUMB.$this->Ad->ad_foto; echo Helper_HTML::file_anchor( $foto, sprintf('<img style="background: url(%s)">', $thumb) ); 
  • and what is this framework? - dpi
  • @dpi are you asking me? I have no idea - Anton Shchyrov