From aa6236b4956bc3e96f62a15d763a2ecee7f38075 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Mon, 21 Apr 2008 08:32:05 +0000 Subject: [PATCH] Added getController (an accessor method to $this->controller so we can use $Controller, or <% control Controller %> in the form templates) --- code/MultiForm.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/MultiForm.php b/code/MultiForm.php index c5f6211..dfa7de9 100644 --- a/code/MultiForm.php +++ b/code/MultiForm.php @@ -104,6 +104,14 @@ abstract class MultiForm extends Form { } } + /** + * Accessor method to $this->controller + * Returns the controller this form was instanciated on. + */ + public function getController() { + return $this->controller; + } + /** * Get the current step. * @return MultiFormStep subclass