Enterprise Template Module
this module is part of Yima Application Framework, (*1)
What this module provides?
Multiple Templates
we can have multiple themes stored in themes folder., (*2)
Put Themes Anywhere
here we can have multiple templates that each one stored to different or same folder as default themes folder.
this can help that each modules required yimaTheme can have own template inside module package. (useful for modules like administration backend), (*3)
Resolvers
we have resolvers for themes and layout.
resolvers are a class that extended from *resolver with priority number registered through config files., (*4)
think we need user of application can choose own template,
ok we write a themeReolver that looking in cookies and brought a template name, done., (*5)
we use this theory for layouts too., (*6)
Impact On The Whole Application
templates on-demand can impact whole application system.(when template resolved), (*7)
what this mean ?
templates have configuration file, in this config we can do such things.
exp.
+ register some autoload config
+ each template can register own view helper
+ we can override or add any config to merged config before application bootstrap
+ with above we can have, controllers, route, navigation, or change render engine and more
+ you can have your own themeObject and your own way., (*8)
we can inject some widget(widgets are viewModel, string or toString object) for each layout, (*9)
Instruction
step into codes, explore default theme syndicate and see comments, (*10)
Installation
Composer installation:, (*11)
require rayamedia/yima-theme
in your composer.json
, (*12)
Or clone to modules folder, (*13)
Enable module with name yimaTheme
, (*14)
Note: see yimaTheme\themes\syndicate\www\README.md, (*15)