mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
QuickForm: add prefix path for local elements
This commit is contained in:
parent
950745d4e9
commit
b6cb7389a1
@ -73,6 +73,21 @@ abstract class QuickForm extends Zend_Form
|
|||||||
public function __construct($options = null)
|
public function __construct($options = null)
|
||||||
{
|
{
|
||||||
parent::__construct($this->handleOptions($options));
|
parent::__construct($this->handleOptions($options));
|
||||||
|
|
||||||
|
$basedir = Icinga::app()
|
||||||
|
->getModuleManager()
|
||||||
|
->getModule('director')
|
||||||
|
->getLibDir()
|
||||||
|
. '/Director/Web/Form';
|
||||||
|
|
||||||
|
$this->addPrefixPaths(array(
|
||||||
|
array(
|
||||||
|
'prefix' => __NAMESPACE__ . '\\Element\\',
|
||||||
|
'path' => $basedir . '/Element',
|
||||||
|
'type' => static::ELEMENT
|
||||||
|
)
|
||||||
|
));
|
||||||
|
|
||||||
$this->setMethod('post');
|
$this->setMethod('post');
|
||||||
$this->setAction(Url::fromRequest());
|
$this->setAction(Url::fromRequest());
|
||||||
$this->createIdElement();
|
$this->createIdElement();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user