Fixing use of deprecated static Director::redirect and redirectBack

This commit is contained in:
Sean Harvey 2014-02-18 10:12:52 +13:00
parent 71a988843a
commit 1a6705a5f1
3 changed files with 5 additions and 5 deletions

View File

@ -25,6 +25,6 @@ class TestFileUploadPage_Controller extends TestPage_Controller{
$member = new Member();
$form->saveInto($member);
$member->write();
Director::redirectBack();
$this->redirectBack();
}
}
}

View File

@ -72,11 +72,11 @@ class TestPage_Controller extends Page_Controller {
function save($data, $form) {
$form->saveInto($this->dataRecord);
$this->dataRecord->write();
Director::redirectBack();
$this->redirectBack();
}
function gohome() {
Director::redirect("./");
$this->redirect("./");
}
function EmailForm() {

View File

@ -21,7 +21,7 @@ class TestMultiForm extends MultiForm {
Session::set("MultiFormMessage", "Your information has been submitted.");
Director::redirect(Director::BaseURL() . $this->Controller()->URLSegment);
$this->Controller()->redirect(Director::BaseURL() . $this->Controller()->URLSegment);
}
}