When do I use document::link vs. document::href_link

Hi Tim,
just a simple question.
When do you use href_ilink/href_link vs. ilink/link.
And why do you use the "native" syntax for an external link, as you are doing it in the e.g. footer: "LiteCart®".

Thanks

tim

document::href_link() is the same as htmlspecialchars(document::link()). href_link is to escape special characters inside an html parameter.

link() is for static or external content while ilink() is for logic and rewritten urls.

There is some mention of it here:
https://wiki.litecart.net/introduction

LiteCart uses link() for consistency and convenience. Having a central component for it all allows easy implementation of e.g. link tracking or such.

Thanks for the quick answer, and all the best for the new year.

tim

Thank you and best wishes back to you.

This thread has been closed due to long inactivity. Posting to it is not possible.
View code on GitHub