Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Dancer2, DBIx::Class and HTML::FormFu: showing database record in html-form to edit

by GertMT (Friar)
on Oct 01, 2018 at 20:48 UTC ( #1223368=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # list clients
    get '/clients' => sub {
    ...
          resultset('Client')->search( {}, { join => ['country'], } );
        template 'clients' => { clients => \@clients_and_countries };
    };
    
  2. or download this
    # change clients
    get '/client-bewerk/:id' => sub {
    ...
    
        template 'add-client', { myform => $form };
    };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1223368]
Approved by marto
Front-paged by haukex
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (1)
As of 2021-10-17 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (71 votes). Check out past polls.

    Notices?