rayamedia/yima-theme

There is no license information available for the latest version (dev-master) of this package.

Professional UI layout system, Simple Powerfull, Maintainable, Extendable.

Installs: 20

Dependents: 2

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:yima-core-module

dev-master 2015-07-14 08:00 UTC

This package is auto-updated.

Last update: 2024-04-24 03:14:28 UTC


README

this module is part of Yima Application Framework

What this module provides?

Multiple Templates

we can have multiple themes stored in themes folder.

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)

Resolvers

we have resolvers for themes and layout. resolvers are a class that extended from *resolver with priority number registered through config files.

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.

we use this theory for layouts too.

Impact On The Whole Application

templates on-demand can impact whole application system.(when template resolved)

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.

Design With Widgets Support In Mind

we can inject some widget(widgets are viewModel, string or toString object) for each layout

Instruction

step into codes, explore default theme syndicate and see comments

Installation

Composer installation:

require rayamedia/yima-theme in your composer.json

Or clone to modules folder

Enable module with name yimaTheme

Note: see yimaTheme\themes\syndicate\www\README.md