Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
HTML::anchor with image
  • hiii 
    please i surch how to have an html::anchor with image???
    helpp
  • Html::anchor('linkofimage', Html::img('pathofimage'));

    Simple.
  • thanks kesali;
    I want to use an image on my link is actually on the folder asset / img I do not know the relative url of the image, I call the image from the folder views of fuelphp


  • Html::anchor('linkofimage', Asset::img('image'));

    will work fine too.
  • thanks Harro Verton;
    for your appropriate and rapid answer

  • Html::anchor('linkofimage', Asset::img('image')); 

    I think this will throw an error, if image does not exist. correct me if i am wrong.
  • Yes, it does.

    Why would you want to create a link with an image that does not exist?
  • ofcourse nobody wants a broken link :)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion