Beefy Boxes and Bandwidth Generously Provided by pair Networks Ovid
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: Implementing Model-View-Controller

by perrin (Chancellor)
on Jan 05, 2006 at 15:53 UTC ( [id://521339]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re^3: Implementing Model-View-Controller
in thread Implementing Model-View-Controller

Ideally, the controller wouldn't do much here. It would read the web request, see that the action requested is a search, read the parameter hair_color=blue from the query string, and then call a method like this:
my @users = User->search(hair_color => $hair_color);
Then it would pass the @users data to a template for display.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://521339]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.