Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
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.
When you have a
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.
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?
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.