I am working on quote.php. I am trying to get a template to display the value of a stock by taking the associative array from
and passing it to
render, but I'm not quite sure how. According to its declaration render takes
I'm not sure how to pass an array with three parts to
render. I've tried several tactics (after also including the name of the template that I'm trying to render--that part works).
render("template.php", $stock); // Seemed like this should have worked but I got an undefined variable error. render("template.php", "$stock"=>"price");
I tried a few other formats, just guessing to see if one would work, because I'm not sure why
$stock didn't work. Sorry if it's something obvious.