3212 Posts in 847 Topics by 809 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 630 Views |
-
What is the purpose/function of $Form in the template?

4 April 2011 at 5:02pm
Hi,
I'm trying to create a simplified template (based on the tutorial) and trying to remove unnecessary code.
I notice that the code
exists in the Tutorial template.$Form
What does it do? From what I can tell so far, it provides the admin login form code. Does it do anything else? Is its functionality documented anywhere?
Thanks very much.
VWD.
-
Re: What is the purpose/function of $Form in the template?

6 April 2011 at 8:19am
When you have a
function Form()
in your controller - it shows it, when you don't you'll never know it was there... for example enable comments on a page and the $Form will be used. -
Re: What is the purpose/function of $Form in the template?

6 April 2011 at 10:13am
OK - Thanks for that Swaiba.
So it seems like something important, and that I have to keep in the template? (Although I'm not using comments in this instance)
Also where does the admin login form code reside?
Thanks Swaiba.
VWD.
-
Re: What is the purpose/function of $Form in the template?

6 April 2011 at 8:15pm
So it seems like something important, and that I have to keep in the template? (Although I'm not using comments in this instance
You need it at least on Page.ss (or Security.ss) as that is what LoginForm renders into. UserForms (if you use it) will also use $Form.
| 630 Views | ||
|
Page:
1
|
Go to Top |



