@alt: checkout official silverstripe page on Injector - this is a good start. I did the following to create a MoneyFactory (spoiler: No cash out!)
- In Yaml Config - setup Injector and for me I also configured available currency strings:
- factory: MoneyFactory
Silverstripe Doco for Injector: http://silverstripe.org/en/3.3/developer_guides/extending/injector/
I find the Injector to be quite cool. I’m new to Silverstripe - only been using it for like 3 weeks now. But I’m not finding anything I can’t do so far ….
I'm looking at a form page with about 100 fields and they all have SomeField::create('foo', 'bar')->addInputClass()->addLabelClass()->add...
does the injector affect all sites in a multisite setup do you know?
Jep, just use the injector, it's not that hard actually.
What do you mean by "multisite setup" exactly?
If you mean, multiple sites from the same codebase, then yes. It's the same codebase ey 😉