3319 Posts in 890 Topics by 835 members
|Go to End|
4 April 2011 at 5:02pm
I'm trying to create a simplified template (based on the tutorial) and trying to remove unnecessary code.
I notice that the codeexists 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.
6 April 2011 at 8:19am
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.
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?
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.
|Go to Top|