Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Catalyst Models Definitive Guide

by ait (Hermit)
on Jul 20, 2011 at 13:56 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: perltutorial [id://915657]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-23 15:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found