Ohhh.. believe me, I've been without a hat since I broke the fancy thing. The table name and the only file it points to (zips.pm) match. So I'm really at a lost. Here is the controller if you're interested.
package WeilMclain::Controller::ContractorLocator; use strict; use warnings; use base 'Catalyst::Controller'; =head1 NAME WeilMclain::Controller::ContractorLocator - Catalyst Controller =head1 DESCRIPTION Catalyst Controller. =head1 METHODS =cut =head2 index =cut sub index : Private { my ( $self, $c ) = @_; $c->stash->{template} = 'contractorlocator/index'; } sub search : Local { my ( $self, $c ) = @_; # Figure out hte zip code we are dealing with in case user gives c +ity,state my $zip_code = 0; if ($c->request->param('city') && $c->request->param('state')) { $zip_code = $c->model('WeilMclainDB::Zips')->get_zip($c->reque +st->param('city'),$c->request->param('state')); } elsif (!$c->request->param('zip')) { $c->response->redirect('/cont +ractorlocator'); } else { $zip_code = $c->request->param('zip'); } my $zips = [$c->model('WeilMclainDB::Zips')->get_closest($zip_code +,$c->request->param('miles'))]; # Get contractors in $zips if (scalar @{$zips} > 0) { $c->stash->{contractors} = [$c->model(' +WeilMclainDB::Contractor')->locate_by_zip($zips)]; } $c->stash->{template} = 'contractorlocator/search'; } =head1 AUTHOR Copyright 2006 Denny D. Daugherty <ddaugherty@kujoe.com> =head1 LICENSE =cut 1;

In reply to Re^2: MVC Catalyst Architecture - City, State Zip locator by ChristinaH
in thread MVC Catalyst Architecture - City, State Zip locator by ChristinaH

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.