}
# less frequent path - perhaps output has been set to an error message
- return OK if $self->output;
+ if ($self->output) {
+ $self->{content_type} ||= $self->__get_mime_type();
+ $self->{document_encoding} ||= "utf-8";
+ return OK;
+ }
# normal path - no output has been generated yet
my $processed_view_ok = $self->__call_process_view;
my ($self) = @_;
# It's just a plain template
+ $self->build_form_elements(0);
$self->model_class(undef);
unless ($self->template) {