php - How to de-link a URL from Symfony link -
i have issue while trying deference url code. want url as:
www.imaginar.fr
instead getting:
http://localhost/epita/web/app_dev.php/questionanswer/cat/www.imaginar.fr
my twig code below:
<tr><td> <a href="{{ entity.resource}}" target="_blank">{{ entity.resource}}</a></td></tr>
my controller code fetches resource data database , trying open resource in new browser without symfony extension
$query1 = $em->createquery('select p.id, p.question, p.answer, r.resource, r.cover epitaepitabundle:questionanswer p left join p.resource r p.id :id') ->setparameter('id', $id); $res = $query1->getresult();
without http:// prefix links appended current pages url.
Comments
Post a Comment