Questions tagged [render]
The render tag has no usage guidance.
6
questions
0
votes
0
answers
62
views
Rendering a template with a basic code and the ip throws a 500 internal error
code
from flask import Flask, render_template
app = Flask(name)
@app.route("/")
def index():
return render_template("index.html")
created a folder called template in the same folder where this ...
1
vote
1
answer
88
views
Explain the syntax for function render in PSET 7
I don't completely understand this line of render.
function render($view, $values = [])
I know it passes two arguments, the second is an empty array that you can fill I think?
I used this in 'Quote'...
3
votes
1
answer
305
views
pset7 register.php and register_form.php how do they work with render() and extract()
I am among less comfortable and struggle with pset7. I will be grateful for your help and explanation on the following:
Looking at View Source Page of https://ide50-name.cs50.io/register.php as well ...
0
votes
1
answer
102
views
Pset7 render() function and apology.php do I understand correctly?
Please, take a look at how I understand the render() function from helplers.php, called by the function apologize().
/**
* Apologizes to user with message.
*/
function apologize($...
0
votes
1
answer
118
views
pset 7, quote: quote.php doesn't render second view
My controller quote.php doesn't work properly. The first view is rendered correctly, but upon submitting a stock symbol (‘FREE’ like in the spec’s example) on this page, the page just reloads instead ...
0
votes
1
answer
86
views
pset7 php generated html appearing above CS50 finance header
I'm working through pset 7, Every time I render and generate html in the controller it appears above the header on the generated page, I can't for the life of me get it to stop.
here's to code.
<...