Help for this page

Select Code to Download


  1. or download this
    Error executing class callback in init stage: DBIx::Class::Schema::load_classes(): DBIx::Class::Relationship::BelongsTo::belongs_to(): Can't locate Notes/DBI/User.pm in @INC (@INC contains: /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at (eval 53) line 3.
  2. or download this
    package Notes;
    
  3. or download this
    use strict;
    use base 'CGI::Application';
    ...
    #use CGI::Application::Plugin::Config::Simple; # for Config::Simple su
    +pport;
    #use CGI::Session;
    use CGI::Carp qw[fatalsToBrowser]; #DEBUG ONLY
    
  4. or download this
    ...
    
  5. or download this
    sub main {
        
    ...
        
        
    }
    
  6. or download this
    package Notes::DBI;
    use strict;
    use base qw/DBIx::Class::Schema/;
    
  7. or download this
    __PACKAGE__->load_classes();  ## hopefully won't slow things down
    
  8. or download this
    1;
    
  9. or download this
    package Notes::DBI::Users;
    use base qw/DBIx::Class/;
    __PACKAGE__->load_components(qw/ PK::Auto Core /);
    
  10. or download this
    __PACKAGE__->table('users');
    __PACKAGE__->add_columns(
    ...
    __PACKAGE__->set_primary_key('userid');
    __PACKAGE__->has_many( notes => 'Notes::DBI::Notes');
    1;
    
  11. or download this
    package Notes::DBI::Notes;
    use base qw/DBIx::Class/;
    
  12. or download this
    __PACKAGE__->load_components(qw/ PK::Auto Core /);
    __PACKAGE__->table('notes');
    ...
    );
    __PACKAGE__->set_primary_key('noteid');
    __PACKAGE__->belongs_to( user => 'Notes::DBI::User');
    
  13. or download this
    1;