Hi,
is it possible to add multiple "Error" Messages during validating Form Data and before redirecting to the Form for showing Validation Errors? This is another Topic where Documentation is really shortcutted.
Is there any Functionality for adding FlashMessages? I mean messages that i can catch up after redirecting?
Another interesting Question is, if it is possible to redirect with some inputted Data to reuse after Validation or some other Process? Like
Controller::curr()->redirectBack()->with($data) where $data is an array
How can i put POST Data into to View when i want to build a hardcoded Form like
<% include SideBar %>
<div class="content-container unit size3of4 lastUnit">
<article>
<h1>$Title</h1>
<div class="content">$Content</div>
</article>
<form action="{$URLSegment}/processForm" method="post">
<div>
<input type="text" name="email" value="{$Email}">
</div>
<input type="submit" value="send">
</form>
$PageComments
</div>
And really helpful could an example of : How catching up Error Messages that are added by
$form->addErrorMessage("Password", "Error Message 1","bad");
$form->addErrorMessage("Password", "Error Message 2","bad");
$form->addErrorMessage("Email", "Error Message 3","bad");
Cant find Examples or Docs of that. Can just read about people who are lot of confused about still Implemented but not Showcased functions.