The core of every CGI application seems to be roughly the same:
This post aims to expand and clarify step #2 above with a newly discovered issue.
So now that you understand these steps, let's see why I am bothering posting all this. Let's assume you have presented a user with an information update screen. The user enters some (possibly invalid) data and hits submit. The following then occurs in CGI::Prototype::activate
package MyApp::Update::Validate; sub response { my $response; if (not validated) { $response = 'Redo'; } elsif (not authenticated) { $response = 'NotAuthenticated' } elsif (not authorized) { $response = 'NotAuthorized'; } else { $response = 'HandleUpdate' # model action: update user info } $response = "MyApp::Login::$response"; return $response; }
But the question becomes where do model actions occur and how do we change pages based on this?
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |