rewrote the template api and added lots of caching options

This commit is contained in:
JT Smith 2004-06-15 17:36:25 +00:00
parent 6613992f3d
commit 20482def49
24 changed files with 252 additions and 100 deletions

View file

@ -195,7 +195,7 @@ sub www_editProfile {
$vars->{'profile.form.elements'} = \@array;
$vars->{'profile.form.submit'} = WebGUI::Form::submit({});
$vars->{'profile.accountOptions'} = WebGUI::Operation::Shared::accountOptions();
return WebGUI::Template::process(WebGUI::Template::get(1,'Operation/Profile/Edit'), $vars);
return WebGUI::Template::process(1,'Operation/Profile/Edit', $vars);
}
#-------------------------------------------------------------------
@ -257,7 +257,7 @@ sub www_viewProfile {
if ($session{user}{userId} == $session{form}{uid}) {
$vars->{'profile.accountOptions'} = WebGUI::Operation::Shared::accountOptions();
}
return WebGUI::Template::process(WebGUI::Template::get(1,'Operation/Profile/View'), $vars);
return WebGUI::Template::process(1,'Operation/Profile/View', $vars);
}
1;