Matthimatiker / MolComponents

Library with use-at-will architecture that extends the functionality of Zend Framework 1. Main features: Improved bootstrapping with lazy loading of resources, declaration of request parameters as argument in controller actions, advanced form creation and validation, mail templates, lightweight controller testing.
Other
2 stars 0 forks source link

Form factory: Support alias chains #28

Closed Matthimatiker closed 12 years ago

Matthimatiker commented 12 years ago

Support chains of aliases in the form factory. For example: registration -> user_data -> UserForm

Cricles should be detected and the factory should break these.

Matthimatiker commented 12 years ago

Added possibility to create alias chains:

// a -> b -> c -> Zend_Form
$factory->addAlias('a', 'b');
$factory->addAlias('b', 'c');
$factory->addAlias('c', 'Zend_Form');