Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From Controller :
- # Save User
- my $user = {
- login => $login,
- password => $password,
- email => $email
- };
- print Dumper $user;
- my $user_id = ChannelStore::Model::User->insert($user);
- In Model:
- sub insert
- {
- my $ref = shift;
- my $db = ChannelStore::Model->db;
- my $users = $db->users;
- print Dumper $ref;
- $users->insert($ref);
- }
- Output from the dumpers in the two different files
- $VAR1 = {
- 'email' => 'bryanpaluch@gmail.com',
- 'password' => 'newmedia',
- 'login' => 'bryanpaluch'
- };
- $VAR1 = 'ChannelStore::Model::User';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement