#===========================================================================
Copyright (C) 2009 by Nik Ogura. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Bug reports and comments to nik.ogura@gmail.com.
CGI::Lazy::Widget::Control
use CGI::Lazy; our $q = CGI::Lazy->new('/path/to/config/file'); our $composite = $q->widget->composite({ id => 'stuff', type => 'parentChild', relationship => { parent => { id => 'parentWidget', searchLike => '%?%', }, children => { activity => { parentKey => 'advertiser.ID', childKey => 'advertiserID', }, }, }, members => [ { class => 'controller', id => 'parent', containerId => 'stuff', template => "parentController.tmpl", controls => [ { name => 'id', label => 'invoice ID', type => 'select', sql => ['select id, id from invoice'], required => 1, }, ], }, ], );
To install CGI::Lazy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Lazy
CPAN shell
perl -MCPAN -e shell install CGI::Lazy
For more information on module installation, please visit the detailed CPAN module installation guide.