GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  JIFTY::BOOTSTRAP (3)

.ds Aq ’

NAME

Jifty::Bootstrap - Insert initial data into your database

CONTENTS

DESCRIPTION

Jifty::Bootstrap is an abstract base class for your application’s bootstrapping. Use it to set up initial data in your database when your application is first installed.

EXAMPLE



 package MyApp::Bootstrap;
 use base Jifty::Bootstrap;

 sub run {
     my $user = MyApp::CurrentUser->new( _bootstrap => 1);
     my $modelclass = MyApp::Model::Thingy->new(current_user => $user);
     $modelclass->create( name => Widget);
 };



    run

run is the workhorse method for the Bootstrap class. This takes care of setting up internal data structures and initializing things in an application-dependent manner.

SEE ALSO

Jifty::Upgrade, Jifty::Script::Schema

LICENSE

Jifty is Copyright 2005-2010 Best Practical Solutions, LLC. Jifty is distributed under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 JIFTY::BOOTSTRAP (3) 2010-12-10

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.