public function action_purge()
{
if (Input::method() == 'POST')
{
$val = Model_Tool::validate_dupes('purge');
if ($val->run())
{
// Lots of processing, POST handling, filling arrays from model etc.
// ...
// OUTPUT
// This works - BUT I get a blank page without styles etc.
return Response::forge(View::forge('tools/purgeconfirm', $data));
// Using this I end up at tools/purge view as if no POST had happened before
$this->template->content = View::forge('tools/purgeconfirm', $data);
}
}
else
{
Session::set_flash('error', $val->error());
}
}
// This is where I always seem to end
$this->template->title = "Cleanup";
$this->template->content = View::forge('tools/purge');
}
It looks like you're new here. If you want to get involved, click one of these buttons!