[php] link generation
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
- $link = Yii::$app->params['frontendUrl'].'projects_pictures/'.$listData->id;
- echo $link; //it generates/prints this link http://portfolio.com/projects_pictures/3
- //but when i pass $link to file_exist() then it says it is not a file/directory.
- //in short it skip this link and moves to else part of condition
- //this Yii::$app->params['frontendUrl'] has link to http://portfolio.com/
Editor
You can edit this paste and save as new: