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

Re^4: Implementing Model-View-Controller

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


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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 06:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found