I was wondering if someone could tell me the correct way to link to another page from within a view.
Is there a function for this or is it just the usual about
I assume you are meaning "internally" within your application.
you can create your own tag and insert a url in the href like this
Link
OR you can use the URL helper this way to generate an tag
anchor(uri segments, text, attributes)
So... to use it...
and that will generate
Link
For the additional commented question
I would use my first example
so...
for images (and other assets) I wouldn't put the file path within the php, I would just echo the base_url() and then add the path normally.