Man Page: jifty::bootstrap
Operating Environment: debian
Section: 3pm
Jifty::Bootstrap(3pm) User Contributed Perl Documentation Jifty::Bootstrap(3pm)NAMEJifty::Bootstrap - Insert initial data into your databaseDESCRIPTION"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.EXAMPLEpackage 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 ALSOJifty::Upgrade, Jifty::Script::SchemaLICENSEJifty is Copyright 2005-2010 Best Practical Solutions, LLC. Jifty is distributed under the same terms as Perl itself. perl v5.14.2 2010-12-10 Jifty::Bootstrap(3pm)
| Related Man Pages |
|---|
| jifty::action::record::create(3pm) - debian |
| jifty::classloader(3pm) - debian |
| jifty::dbi::filter(3pm) - debian |
| jifty::dbi::record::cachable(3pm) - debian |
| jifty::handler(3pm) - debian |
| Similar Topics in the Unix Linux Community |
|---|
| Adding the individual columns of a matrix. |
| Is UNIX an open source OS ? |
| One instance of comparing grep and awk |
| Find columns in a file based on header and print to new file |