Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 perusing the Monastery: (6)
As of 2016-09-25 18:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (471 votes). Check out past polls.