Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class BaseForm extends Nette\Application\UI\Form
- {
- protected function attached($parent)
- {
- parent::attached($parent);
- if (!$parent instanceof Nette\Application\UI\Presenter) {
- return;
- }
- $this->setTranslator($this->presenter->context->getByType('Nette\Localization\ITranslator'));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment