Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 pondering the Monastery: (6)
As of 2015-05-23 04:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (465 votes), past polls