Jump to content

3Dots

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by 3Dots

  1. Hey guys I'm currently learning PW and I need to wrap my head around a few concepts I guess. At first I was wondering why there were no real form and db API methods. After all, how can you allow a user to fill in a form and save the resulting data in the db? A post from Joss gave me some valuable insight into what a page is. So I'm guessing that a "record" in the db is actually a page. And the way to process a form filled in by the user is to build my own form, catch the input after form submission via $input, and then fill in "fields" of a "page" (which translates to "columns" of a "record"). Is this correct? Now, what I am not sure of, is how to add a new page this way (i.e. insert a new record). Do I need to prepare a template and then use $templates->save($template)? Is there a short example somewhere of how this works? Thanks! ...
×
×
  • Create New...