I get that render in a nutshell renders a template I want. For example when I want the site to render login_form I can use it I however do not understand what $values [] does

Well, because render calls extract on that second argument, an array, before
requiring header.php , header.php ends up having access to a     variable called

I dont really understand what this means. I can what it can do I can use this to change the title for my liking

 render("portfolio.php", ["title" => "Portfolio"]);

Does render give portfolio an associative array called title with the value Portfolio?
Is the second argument required? Can anyone explain it to me?

1 Answer 1


solved via reddit thanks to FReeER for helping me figure out with the long explanations it really helped me


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .