Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Catalyst Models Definitive Guide

by ait (Friar)
on Jul 20, 2011 at 13:56 UTC ( #915657=perltutorial: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub index :Path :Args(0) {
      my ( $self, $c ) = @_;
      my @people = $c->model('Models::People')->all();
      $c->stash->{people} = \@people;
    }
    
  2. or download this
    sub index :Path :Args(0) {
        my ( $self, $c ) = @_;
    ...
        $c->stash->{people} =  $c->model('Models::People')->listall();
    
    }
    
  3. or download this
    package Models::Schema::ModelsDB::ResultSet::People;
    
    ...
    }
    
    1;
    
  4. or download this
    sub index :Path :Args(0) {
        my ( $self, $c ) = @_;
    ...
        $c->stash->{people} =  $c->model('HomeGrownModel')->homegrown_peop
    +le();
    
    }
    
  5. or download this
    package Models::Model::HomeGrownModel;
    
    ...
    }
    
    1;
    
  6. or download this
    
    after 'setup_components' => sub {
    ...
      }
    };
    
  7. or download this
    package HomeGrown;
    use Moose;
    ...
    }
    
    1;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perltutorial [id://915657]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2016-07-26 16:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (238 votes). Check out past polls.