silence
Well-known member
So let's say I have a model function as follows:
And I put that into a variable called $stuff and send it to my template.
How come the following doesn't work:
It's not making a link of https://website.com/stuff/1.
Why wouldn't it be doing this?
PHP:
public function getAllStuff()
{
return $this->fetchAllKeyed('
SELECT stuff.*
FROM xf_stuff AS stuff
ORDER BY stuff_id
', 'stuff_id');
}
And I put that into a variable called $stuff and send it to my template.
How come the following doesn't work:
HTML:
{xen:link stuff, $stuff}
It's not making a link of https://website.com/stuff/1.
Why wouldn't it be doing this?