Menu

ActionForm properties in the View

Help
2003-02-26
2003-02-27
  • Scott Seong

    Scott Seong - 2003-02-26

    How do we populate the form values in the view in the event validation fails in the action form?

     
    • Scott Seong

      Scott Seong - 2003-02-27

      Oh, I found the answer from developer mailing list. Thanks to Jason Sweat.

      I had to add the following in the smarty php file, before displaying a template.

      if ($_SESSION[_FORM]) {
          $tpl->assign('form', $_SESSION[_FORM]->_values );
      }

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.