mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
Added getController (an accessor method to $this->controller so we can use $Controller, or <% control Controller %> in the form templates)
This commit is contained in:
parent
22d9241021
commit
aa6236b495
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user