2017 © Pedro Peláez
 

silverstripe-module silverstripe-namespace-templates

SilverStripe module to ease the use of templates for classes with namespaces in SilverStripe 3

image

zauberfisch/silverstripe-namespace-templates

SilverStripe module to ease the use of templates for classes with namespaces in SilverStripe 3

  • Tuesday, January 16, 2018
  • by Zauberfisch
  • Repository
  • 1 Watchers
  • 1 Stars
  • 54 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 13 % Grown

The README.md

SilverStripe 3 Namespaced Templates

SilverStripe module to ease the use of templates for classes with namespaces in SilverStripe 3, (*1)

>>> \zauberfisch\NamespaceTemplates\View\SSViewer::get_templates_by_class('zauberfisch\NamespaceTemplates\Form\CompositeField', '', 'FormField');
[
    'zauberfisch-NamespaceTemplates-Form-CompositeField',
    'NamespaceTemplates-Form-CompositeField',
    'CompositeField',
    'FormField',
]

# class foo\bar\Class1 extends foo\bar\Class2
# class foo\bar\Class2 extends foo\Class3
# class foo\Class3 extends ViewableData

>>> \zauberfisch\NamespaceTemplates\View\SSViewer::get_templates_by_class('foo\bar\Class1', '', 'ViewableData');
[
    'foo-bar-Class1',
    'bar-Class1', // stripped potential vendor prefix
    'foo-bar-Class2',
    'bar-Class2', // stripped potential vendor prefix
    'foo-Class3',
    'class3', // stripped potential vendor prefix
    'ViewableData',
]

The Versions

16/01 2018

dev-master

9999999-dev

SilverStripe module to ease the use of templates for classes with namespaces in SilverStripe 3

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar Zauberfisch

template form silverstripe namespace render formfield ssviewer

16/01 2018

v1.1.0

1.1.0.0

SilverStripe module to ease the use of templates for classes with namespaces in SilverStripe 3

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar Zauberfisch

template form silverstripe namespace render formfield ssviewer

24/08 2017

v1.0.0

1.0.0.0

SilverStripe module to ease the use of templates for classes with namespaces in SilverStripe 3

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar Zauberfisch

template form silverstripe namespace render formfield ssviewer