Re: how to pass data in internal redirects?

2002-02-28 Thread Anton Permyakov
Take a look at PageKit (www.pagekit.org) - i use it and i like it. This is good Perl MVC framework. Anton. - Original Message - From: F. Xavier Noria [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 26, 2002 12:09 PM Subject: how to pass data in internal redirects

Re: how to pass data in internal redirects?

2002-02-26 Thread dom
I suppose that controllers would use internal redirects to call the views, is there a way to pass Perl data this way? For the project I work on (a WWW-enabled PKI), we simply use CGI-encoded URLs. This way, we can do the controllers in Perl and the views in PHP, which is great for security

Re: how to pass data in internal redirects?

2002-02-26 Thread Rafiq Ismail (ADMIN)
Surprisingly I'm actually doing a proof of principle on the same theme. I'm developing a set of MVC classes which tie in with either tt2 or mason. I've got abstract Model, View and Controller classes. View can be subclassed into HTML, XML, whatever. I'm using normal classes at the moment, but

Re: how to pass data in internal redirects?

2002-02-26 Thread Henigan, Timothy
I am also implementing a MVC pattern under mod_perl for an internal project at work. The app collects process data from our manufacturing processes and makes it available on the internal network. Here's a quick overview of the way I've done it. Model: The model consists of a backend database

Re: how to pass data in internal redirects?

2002-02-26 Thread Jon Robison
$r-pnotes persist across internal_redirects, I believe. --Jon Robison Igor Sysoev wrote: On Tue, 26 Feb 2002, F. Xavier Noria wrote: I suppose that controllers would use internal redirects to call the views, is there a way to pass Perl data this way? For example, in the hangman game

Re: how to pass data in internal redirects?

2002-02-26 Thread F . Xavier Noria
On Tue, 26 Feb 2002 08:32:37 -0500 Henigan, Timothy [EMAIL PROTECTED] wrote: : I don't know if this is the best design, but it works for this application. : If you made it this far into the email, you might be interested in some : sample code...let me know. If you have comments, please speak

Re: how to pass data in internal redirects?

2002-02-26 Thread Perrin Harkins
F. Xavier Noria wrote: For example, in the hangman game in O'Reilly's book a controller would load a session from the cookie, process user's guest, modify the state and redirect the request internally to the view. It would probably be orders of magnitude faster to just call a template

Re: how to pass data in internal redirects?

2002-02-26 Thread Joachim Zobel
At 16:06 26.02.02 +0100, you wrote: So, a controller could in principle perform a call to a template engine as yours does, conceptually there is no need to do that internal redirect. In fact, there is no need to have two different files if I take the pattern a bit further. For instance, I

how to pass data in internal redirects?

2002-02-25 Thread F . Xavier Noria
As an exercise studying mod_perl I am trying to see how could the MVC pattern be implemented. I've thought a possible approach would be to write the model using normal Perl classes, and controllers and views with Apache modules. I suppose that controllers would use internal redirects to call

Re: how to pass data in internal redirects?

2002-02-25 Thread Igor Sysoev
On Tue, 26 Feb 2002, F. Xavier Noria wrote: I suppose that controllers would use internal redirects to call the views, is there a way to pass Perl data this way? For example, in the hangman game in O'Reilly's book a controller would load a session from the cookie, process user's guest,