Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 meditating upon the Monastery: (11)
As of 2014-12-27 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls