ClearPress::view - MVC view superclass
$LastChangedRevision: 12 $
my $oView = ClearPress::view::<subclass>->new({'util' => $oUtil}); $oView->model($oModel); print $oView->decor()? $oDecorator->header() : q(Content-type: ).$oView->content_type()."\n\n"; print $oView->render(); print $oView->decor()?$oDecorator->footer():q();
View superclass for the ClearPress framework
my $oView = ClearPress::view::<subclass>->new({'util' => $oUtil, ...});
my $sTemplateName = $oView->template_name();
my $sMethodName = $oView->method_name();
$oView->add_warning($sWarningMessage);
This should usually take into account $self->action() which suggests read or write access. my $bIsAuthorised = $oView->authorised();
my $sViewOutput = $oView->render();
$oView->create(); Populates $oSelf->model() with its expected parameters from the CGI block, then calls $oModel->create();
my $tt = $oView->tt();
$oView->util($oUtil); my $oUtil = $oView->util();
$oView->model($oModel); my $oModel = $oView->model();
$oView->action($sAction); my $sAction = $oView->action();
$oView->aspect($sAction); my $sAction = $oView->aspect();
$oView->content_type($sContentType); my $sContentType = $oView->content_type();
$oView->decor($bDecorToggle); my $bDecorToggle = $oView->decor();
my $sActionOutput = $oView->actions();
Template ClearPress::util Carp English
Roger Pettett, <rpettett@cpan.org>
Copyright (C) 2007 Roger Pettett
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install ClearPress, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ClearPress
CPAN shell
perl -MCPAN -e shell install ClearPress
For more information on module installation, please visit the detailed CPAN module installation guide.