class FormAction extends ManagedAction
{
protected $form = null;
+ protected $formOpts = array();
protected $type = null;
protected $needLogin = true;
protected $canPost = true;
return true;
}
- public function isReadOnly($args) {
+ public function isReadOnly(array $args=array()) {
return !$this->isPost();
}
protected function getForm()
{
$class = $this->form.'Form';
- $form = new $class($this);
+ $form = new $class($this, $this->formOpts);
return $form;
}