/** * Add mappings for generic form constructors to automatically delegate to a scaffolded form object. */ function defineMethods() { parent::defineMethods(); foreach ($this->getManagedModels() as $class => $options) { if (is_numeric($class)) { $class = $options; } $this->addWrapperMethod($class, 'bindModelController'); self::$allowed_actions[] = $class; } }
/** * Add mappings for generic form constructors to automatically delegate to a scaffolded form object. */ function defineMethods() { parent::defineMethods(); foreach ($this->getManagedModels() as $ClassName) { $this->addWrapperMethod($ClassName, 'bindModelController'); self::$allowed_actions[] = $ClassName; } }